bsalomon@google.com
8361a0fa2c
Fix macro in Chrome's GL config file
...
Review URL: http://codereview.appspot.com/4308041/
git-svn-id: http://skia.googlecode.com/svn/trunk@980 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-22 14:38:11 +00:00
reed@google.com
df49991eb3
add SkCreateTypefaceFromCTFont() to create a typeface directly from a CTFontRef
...
Compute the actual style from the returned CTFontRef, rather than assuming the
request will always be met.
git-svn-id: http://skia.googlecode.com/svn/trunk@979 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-22 14:07:59 +00:00
scroggo
08526c07f4
Add a 'fatbits' mode to unix sample app.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@978 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-22 14:03:21 +00:00
bsalomon@google.com
86c92b3d8f
Remove redundant defines of GR_GL macros.
...
Patch submitted by weiwei.li@intel.com
Review URL: http://codereview.appspot.com/4290060/
git-svn-id: http://skia.googlecode.com/svn/trunk@977 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-22 13:08:48 +00:00
mike@reedtribe.org
9db4928b26
add more styles to show
...
git-svn-id: http://skia.googlecode.com/svn/trunk@976 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-22 01:35:30 +00:00
mike@reedtribe.org
2ccdf2abc2
map canonical css names to real fonts
...
git-svn-id: http://skia.googlecode.com/svn/trunk@975 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-22 01:32:34 +00:00
bsalomon@google.com
d1e4335318
Remove IMG multisample texture support.
...
This never worked correctly. The texture loses multisample status when the resolve occurs. We never had code to re-establish it. Also, we'd have to handle the case where you resolve but then want to render to it again without clearing.
Review URL: http://codereview.appspot.com/4274074/
git-svn-id: http://skia.googlecode.com/svn/trunk@974 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 21:38:40 +00:00
reed@google.com
ce11b26e82
convert fixed->scalar directly, since we know that the
...
glyph's advance is already base-1000
git-svn-id: http://skia.googlecode.com/svn/trunk@973 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 21:25:35 +00:00
bsalomon@google.com
c312bf9935
Remove old GR_* macros for GL extensions in favor of GrGLDefines.h
...
Review URL: http://codereview.appspot.com/4275061/
git-svn-id: http://skia.googlecode.com/svn/trunk@972 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 21:10:33 +00:00
reed@google.com
160f2c0e17
increase intermediate precision when chopping lines. This avoids returning a
...
computed value that is accidentally outside of the original range.
git-svn-id: http://skia.googlecode.com/svn/trunk@971 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 20:33:42 +00:00
bsalomon@google.com
918261018f
Add GR_DLL builds to Ganesh (minimal exports for Chrome multi-dll for now).
...
Review URL: http://codereview.appspot.com/4301044/
git-svn-id: http://skia.googlecode.com/svn/trunk@970 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 19:51:57 +00:00
reed@google.com
e6507632c1
change -lpng12 to -lpng
...
The distinction doesn't seem necessary, and newer installs are getting 1.4 or later of libpng
git-svn-id: http://skia.googlecode.com/svn/trunk@969 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 17:45:15 +00:00
bsalomon@google.com
a9681db3f5
Fix line endings on gyp file.
...
Review URL: http://codereview.appspot.com/4281063/
git-svn-id: http://skia.googlecode.com/svn/trunk@968 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 13:34:23 +00:00
mike@reedtribe.org
dd0cd34067
allow window-subclass to handle dispatching click events (for resize)
...
add drag tracking to Draw
git-svn-id: http://skia.googlecode.com/svn/trunk@967 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-21 00:53:39 +00:00
mike@reedtribe.org
b7d956df46
add draw sample
...
git-svn-id: http://skia.googlecode.com/svn/trunk@966 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-20 20:19:16 +00:00
vandebo@chromium.org
57463e1908
Make SkDeviceFactory part of the API.
...
Review URL: http://codereview.appspot.com/4273081
git-svn-id: http://skia.googlecode.com/svn/trunk@965 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-19 17:27:49 +00:00
scroggo
001b972189
Pass motion events in the unix sample app.
...
Allows dragging and flinging the samples.
git-svn-id: http://skia.googlecode.com/svn/trunk@964 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 22:09:01 +00:00
scroggo
b66365f5dd
Updates to the unix sample app.
...
Rather than placing pixels, use XPutImage to place the bitmap on screen.
Modify the color arrangements for 8888 when building the sample app, so
they agree with X.
Add a title to simple sample.
Include SkTouchGesture.
git-svn-id: http://skia.googlecode.com/svn/trunk@963 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 21:43:03 +00:00
reed@google.com
3f0dcf96c3
fix scalar math to work with float and fixed
...
git-svn-id: http://skia.googlecode.com/svn/trunk@962 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 21:23:45 +00:00
reed@google.com
c31a9d6d39
fix warnings of int->float and double->float
...
git-svn-id: http://skia.googlecode.com/svn/trunk@961 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 20:53:44 +00:00
twiz@google.com
b65e0cb8ad
Remove the compile-time selection of the GL implementation based on the
...
GR_SUPPORT_GLDESKTOP family of macros.
Support for the platform is configured dynamically, by querying the
fBindingsExported member of active GrGLInterface instance.
Review: http://codereview.appspot.com/4298048/
git-svn-id: http://skia.googlecode.com/svn/trunk@960 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 20:41:44 +00:00
twiz@google.com
0f31ca79bd
This CL removes all dependencies on GL headers across all of Ganesh. New
...
GrGLint, etc. types are introduced, and new GR_GL_XXXX constants for use at all
GL call-sites.
Review: http://codereview.appspot.com/4272061/
git-svn-id: http://skia.googlecode.com/svn/trunk@959 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 17:38:11 +00:00
bsalomon@google.com
098611bd74
Revert GR_STATIC_RECT_VB in GrGLConfig_chrome.h
...
Review URL: http://codereview.appspot.com/4282057/
git-svn-id: http://skia.googlecode.com/svn/trunk@958 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 15:10:06 +00:00
reed@google.com
4b0f0b2758
fix warnings (local storage too small, int->scalar)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@957 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 14:47:36 +00:00
reed@google.com
97fa34c5f0
change operator== to return bool instead of int
...
update dox formating
git-svn-id: http://skia.googlecode.com/svn/trunk@956 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 14:44:42 +00:00
bsalomon@google.com
c8ad63e5e4
Initial GYP file for skia / gr. Builds SampleApp on Mac, Windows, Linux.
...
Review URL: http://codereview.appspot.com/4282056/
git-svn-id: http://skia.googlecode.com/svn/trunk@955 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 14:29:44 +00:00
mike@reedtribe.org
2f834592b1
use SkSafeUnref()
...
git-svn-id: http://skia.googlecode.com/svn/trunk@954 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-18 10:33:47 +00:00
reed@google.com
2ade0863c3
abort drawing if srcRect is outside of the bitmap bounds
...
git-svn-id: http://skia.googlecode.com/svn/trunk@951 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-17 17:48:04 +00:00
twiz@google.com
6ecc33d794
Addition of missing file in Visual Studio sample app project file.
...
Regression introduced by revision: http://code.google.com/p/skia/source/detail?r=946
Review: http://codereview.appspot.com/4274065
git-svn-id: http://skia.googlecode.com/svn/trunk@950 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-17 04:14:52 +00:00
bsalomon@google.com
0078079b20
Make chrome use the static square vb when drawing rects.
...
Review URL: http://codereview.appspot.com/4280053/
git-svn-id: http://skia.googlecode.com/svn/trunk@949 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-16 20:10:48 +00:00
reed@google.com
9d07fec374
update dox for setLooper()
...
update some { } styles
git-svn-id: http://skia.googlecode.com/svn/trunk@948 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-16 20:02:59 +00:00
bsalomon@google.com
b52bb9b2cb
Remove dependence on glew for creating SkOSWindow_Win's GL ctx.
...
Review URL: http://codereview.appspot.com/4276053/
git-svn-id: http://skia.googlecode.com/svn/trunk@947 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-16 12:52:03 +00:00
reed@google.com
52f57e1d11
add fling
...
git-svn-id: http://skia.googlecode.com/svn/trunk@946 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-16 12:10:02 +00:00
ctguil@chromium.org
109a2e3afa
Add SK_API to SkCreateTypefaceFromLOGFONT.
...
Review URL: http://codereview.appspot.com/4273062
git-svn-id: http://skia.googlecode.com/svn/trunk@945 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-16 00:31:36 +00:00
ctguil@chromium.org
7ffb1b21ab
Add code needed to build skia as a windows dll within the chromium project.
...
- Export/import skia APIs if SKIA_DLL is defined.
- This change has no effect on skia.
Review URL: http://codereview.appspot.com/4282042
git-svn-id: http://skia.googlecode.com/svn/trunk@944 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 21:27:08 +00:00
reed@google.com
f67e4cf4c1
add filterTextFlags() to SkDevice (virtual) to allow device subclasses to
...
filter what text features we try to use. The filtering allows for implementation
limitations to dictate when we turn off certain text features.
git-svn-id: http://skia.googlecode.com/svn/trunk@943 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 20:56:58 +00:00
reed@google.com
759c16e20d
need a separate texture for each maskformat in atlasmgr
...
git-svn-id: http://skia.googlecode.com/svn/trunk@942 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 19:15:15 +00:00
bsalomon@google.com
080773ca79
Add blend constant color and use it for lcd text common case (no fancy blend or shaded text)
...
Review URL: http://codereview.appspot.com/4274057/
git-svn-id: http://skia.googlecode.com/svn/trunk@941 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 19:09:25 +00:00
twiz@google.com
dc008e1710
Correction of GLES build issue introduced by in revision:
...
http://code.google.com/p/skia/source/detail?r=937
Issue: http://code.google.com/p/skia/issues/detail?id=174
Review: http://codereview.appspot.com/4288047/
git-svn-id: http://skia.googlecode.com/svn/trunk@940 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 16:12:21 +00:00
reed@google.com
98539c607b
support lcd16 in text atlas (sans shader support)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@939 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 15:40:16 +00:00
scroggo
b7e9aee1ac
Add a sample application that runs on unix.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@938 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-15 15:15:15 +00:00
twiz@google.com
59a190bcab
Implementation of a GL-virtualization layer for Skia. This allows for
...
environments using skia to specify a GL implementation at run-time, instead of
relying on the linker to pull in the appropriate GL impl.
A new structure, GrGLInterface is exposed. This struct contains a set of
function pointers that should point to an appropriate GL implementation.
This change also removes the reliance on GLew on windows builds.
Review: http://codereview.appspot.com/4254059/
git-svn-id: http://skia.googlecode.com/svn/trunk@937 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 21:23:01 +00:00
djsollen@google.com
cd9d69b9ce
Upstreaming changes from android.
...
- fix compile warnings in the GPU code
- upstream android specific code (ifdef protected)
- fail gracefully when a custom allocator fails
git-svn-id: http://skia.googlecode.com/svn/trunk@936 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 20:30:14 +00:00
reed@google.com
260db92d49
trim 3-byte column at start and end of freetype bitmap
...
git-svn-id: http://skia.googlecode.com/svn/trunk@935 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 18:09:32 +00:00
reed@google.com
8abde0a15d
disable lcd format for lcd16 as well
...
git-svn-id: http://skia.googlecode.com/svn/trunk@934 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 17:45:33 +00:00
twiz@google.com
06c3b6bfd5
Correction of Windows SampleApp build break introduced by r925.
...
(http://code.google.com/p/skia/source/detail?r=925 )
Issue: http://codereview.appspot.com/4286053/
git-svn-id: http://skia.googlecode.com/svn/trunk@933 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 16:58:39 +00:00
reed@google.com
ea2333de1e
add LCD16 copy routine
...
git-svn-id: http://skia.googlecode.com/svn/trunk@932 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 16:44:56 +00:00
reed@google.com
6016962f72
use system font path when building on the mac
...
git-svn-id: http://skia.googlecode.com/svn/trunk@931 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 15:08:44 +00:00
reed@google.com
8a5d692c03
work around linker-error when building on the Mac
...
git-svn-id: http://skia.googlecode.com/svn/trunk@930 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 15:08:03 +00:00
reed@google.com
65dd8f8310
Don't use LCD16 if SK_SUPPORT_LCDTEXT is defined (for compatibility)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@928 2bbb7eff-a529-9590-31e7-b0007b416f81
2011-03-14 13:31:16 +00:00