bsalomon@google.com [Fri, 1 Apr 2011 14:51:07 +0000 (14:51 +0000)]
fix mac build of gr unit test
Review URL: http://codereview.appspot.com/
4351042/
git-svn-id: http://skia.googlecode.com/svn/trunk@1034
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 1 Apr 2011 14:30:00 +0000 (14:30 +0000)]
add () to fix warning
git-svn-id: http://skia.googlecode.com/svn/trunk@1033
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Thu, 31 Mar 2011 23:17:05 +0000 (23:17 +0000)]
Add src/core include for pdf project.
Review URL: http://codereview.appspot.com/
4331053
git-svn-id: http://skia.googlecode.com/svn/trunk@1032
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Thu, 31 Mar 2011 21:26:24 +0000 (21:26 +0000)]
Refactoring the GrGpuGLShaders2 into 2 classes: GrGpuGLShaders
and GrGLProgram. The change also contains stubs and placeholders for GrEffect
(work in progress), which will extend shader and rendering capabilities in
Ganesh. The hash keys for the program cache table have been modified to be able
to accomodate variable-length keys, which will be required for GrEffect support.
Code review: http://codereview.appspot.com/
4309045/
git-svn-id: http://skia.googlecode.com/svn/trunk@1031
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 22:34:45 +0000 (22:34 +0000)]
add code to test different premul techniques (disabled right now)
git-svn-id: http://skia.googlecode.com/svn/trunk@1030
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 22:04:53 +0000 (22:04 +0000)]
Add pdf to skia.gyp and checkin a snap of GYP.
Review URL: http://codereview.appspot.com/
4307050/
git-svn-id: http://skia.googlecode.com/svn/trunk@1029
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 21:43:04 +0000 (21:43 +0000)]
Fix signed/unsigned warnings in debug build in flushStencil()
git-svn-id: http://skia.googlecode.com/svn/trunk@1028
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 21:31:12 +0000 (21:31 +0000)]
Add GrResource.cpp to gr_files.mk
git-svn-id: http://skia.googlecode.com/svn/trunk@1027
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 30 Mar 2011 21:26:44 +0000 (21:26 +0000)]
Add GrResource base class for ibs, texs, vbs, etc.
Add lostContext() to GrContext.
Review URL: http://codereview.appspot.com/
4328044/
git-svn-id: http://skia.googlecode.com/svn/trunk@1026
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 21:23:07 +0000 (21:23 +0000)]
replace SkRefDict with SkMetaData (much more general)
git-svn-id: http://skia.googlecode.com/svn/trunk@1025
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Wed, 30 Mar 2011 20:41:16 +0000 (20:41 +0000)]
Prepend SkAdvancedTypefaceMetrics on enum usage.
Review URL: http://codereview.appspot.com/
4321047
git-svn-id: http://skia.googlecode.com/svn/trunk@1024
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Wed, 30 Mar 2011 20:14:49 +0000 (20:14 +0000)]
Additional SK_API annotations needed for print preview on windows.
Review URL: http://codereview.appspot.com/
4324042
git-svn-id: http://skia.googlecode.com/svn/trunk@1022
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 18:41:41 +0000 (18:41 +0000)]
add SkMetaData
git-svn-id: http://skia.googlecode.com/svn/trunk@1021
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 30 Mar 2011 18:36:29 +0000 (18:36 +0000)]
Improve the SkAdvancedTypefaceMetrics interface w.r.t. vertical advances.
Add a template function to type safe-combine bits of a bit field.
Review URL: http://codereview.appspot.com/
4313053
git-svn-id: http://skia.googlecode.com/svn/trunk@1020
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 18:23:21 +0000 (18:23 +0000)]
add refcnt helper to metadata
add unittests for metadata
git-svn-id: http://skia.googlecode.com/svn/trunk@1019
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 17:10:42 +0000 (17:10 +0000)]
move SkMetaData into core
git-svn-id: http://skia.googlecode.com/svn/trunk@1018
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 17:06:19 +0000 (17:06 +0000)]
add new file GrPathUtils.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1017
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 30 Mar 2011 00:18:03 +0000 (00:18 +0000)]
add getTopLayer(), so clients don't have to use a LayerIter just to get
the top. (very common for chrome)
git-svn-id: http://skia.googlecode.com/svn/trunk@1016
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 29 Mar 2011 20:52:23 +0000 (20:52 +0000)]
Fix ref leak on GrGpu.
Review URL: http://codereview.appspot.com/
4323043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1015
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 29 Mar 2011 17:42:30 +0000 (17:42 +0000)]
Two optimizations for the tesselated path renderer:
1) If the path contains a single convex subpath, and we're not using inverted
fill modes, skip the tesselation and draw the interpolated path as a triangle
fan directly.
2) Use GrDrawTarget.set*SourceToArray(), rather than creating a new
AutoReleaseGeometry, saving a copy of the vertex and index data.
Review URL: http://codereview.appspot.com/
4280076/
git-svn-id: http://skia.googlecode.com/svn/trunk@1014
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Mon, 28 Mar 2011 20:47:09 +0000 (20:47 +0000)]
This CL implements a tesselated path renderer, using GLU's libtess. All of the
fill modes except hairline are supported. Note that the path renderer is not
enabled by default; to enable it, replace "GrCreatePathRenderer_none.cpp" with
"GrCreatePathRenderer_tesselated.cpp" in skia.gyp, and run gyp_skia, and build.
This change also contains a number of build fixes for Win32 (for building
SampleApp on VS2008) and Mac (for my ancient Mac Pro which supports
GL_EXT_framebuffer_object but not GL_ARB_framebuffer_object). Also,
priorityq-heap.c was removed from the SampleApp build, since it's #included by
priorityq.c (weird, I know).
NB: When this change is rolled into chrome, some modifications to chromium's
skia.gyp will be necessary.
Review URL: http://codereview.appspot.com/
4289072/
git-svn-id: http://skia.googlecode.com/svn/trunk@1012
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 28 Mar 2011 19:03:50 +0000 (19:03 +0000)]
Store content streams in an SkStream instead of an SkString (64k size limit).
Review URL: http://codereview.appspot.com/
4272070
git-svn-id: http://skia.googlecode.com/svn/trunk@1011
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 28 Mar 2011 03:47:18 +0000 (03:47 +0000)]
add experimental Relay class
git-svn-id: http://skia.googlecode.com/svn/trunk@1010
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 25 Mar 2011 18:04:43 +0000 (18:04 +0000)]
Hairline stroke 1px wide paths.
Review URL: http://codereview.appspot.com/
4317041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1008
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 25 Mar 2011 17:41:34 +0000 (17:41 +0000)]
Add the GLU tesselator source files to third_party. Add a libtess static
library build target to the .gyp file (not required by any executable yet). Fix
some build errors with SampleApp on Linux and Win32. Add a gyp_skia python
script which invokes gyp with the correct arguments, and is recursively callable
by the Makefile when skia.gyp is changed.
Review URL: http://codereview.appspot.com/
4280069/
git-svn-id: http://skia.googlecode.com/svn/trunk@1007
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 25 Mar 2011 15:08:16 +0000 (15:08 +0000)]
add dox for drawPath, describing how to interpret the prePathMatrix.
git-svn-id: http://skia.googlecode.com/svn/trunk@1006
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 25 Mar 2011 12:31:16 +0000 (12:31 +0000)]
Add way to determine at link time what path renderer will be used.
Added mechanism for a custom path renderer to punt and fallback to default path renderer
git-svn-id: http://skia.googlecode.com/svn/trunk@1005
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 24 Mar 2011 19:17:31 +0000 (19:17 +0000)]
Remove optional impl for SkClampMax that relied on not wrapping, as in fact
we do sometimes (e.g. gradients).
git-svn-id: http://skia.googlecode.com/svn/trunk@1003
2bbb7eff-a529-9590-31e7-
b0007b416f81
Scroggo [Thu, 24 Mar 2011 18:35:50 +0000 (18:35 +0000)]
Move zoomer into SampleApp
git-svn-id: http://skia.googlecode.com/svn/trunk@1002
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 24 Mar 2011 16:55:45 +0000 (16:55 +0000)]
Fix direct-to-stencil clippath rendering logic in GrGpu.
Review URL: http://codereview.appspot.com/
4273104/
git-svn-id: http://skia.googlecode.com/svn/trunk@1001
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 24 Mar 2011 16:14:10 +0000 (16:14 +0000)]
Rename flag that disables stencil buffer creation
Review URL: http://codereview.appspot.com/
4273103/
git-svn-id: http://skia.googlecode.com/svn/trunk@1000
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo [Wed, 23 Mar 2011 15:04:26 +0000 (15:04 +0000)]
Fix a crash.
http://codereview.appspot.com/
4272065/
git-svn-id: http://skia.googlecode.com/svn/trunk@986
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 23 Mar 2011 13:51:55 +0000 (13:51 +0000)]
Initialize fClip in SkBounder, in case doIRect() is called before it is used
inside a canvas (which calls setClip).
Export a global empty region. Used by SkBounder's constructor.
git-svn-id: http://skia.googlecode.com/svn/trunk@985
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 23 Mar 2011 13:50:34 +0000 (13:50 +0000)]
Add GL_CHROMIUM_framebuffer_multisample support.
Review URL: http://codereview.appspot.com/
4287072/
git-svn-id: http://skia.googlecode.com/svn/trunk@984
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Mar 2011 20:53:31 +0000 (20:53 +0000)]
Fix SK build macro.
Review URL: http://codereview.appspot.com/
4312041/
git-svn-id: http://skia.googlecode.com/svn/trunk@983
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Mar 2011 19:49:08 +0000 (19:49 +0000)]
inline knowledge that our pointsize is always 1 when we measure/draw
#ifdef protect 10.6 or later APIs (not available on 10.5)
git-svn-id: http://skia.googlecode.com/svn/trunk@982
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 22 Mar 2011 17:49:13 +0000 (17:49 +0000)]
add GR at the end
git-svn-id: http://skia.googlecode.com/svn/trunk@981
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Mar 2011 14:38:11 +0000 (14:38 +0000)]
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
reed@google.com [Tue, 22 Mar 2011 14:07:59 +0000 (14:07 +0000)]
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
scroggo [Tue, 22 Mar 2011 14:03:21 +0000 (14:03 +0000)]
Add a 'fatbits' mode to unix sample app.
git-svn-id: http://skia.googlecode.com/svn/trunk@978
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 22 Mar 2011 13:08:48 +0000 (13:08 +0000)]
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
mike@reedtribe.org [Tue, 22 Mar 2011 01:35:30 +0000 (01:35 +0000)]
add more styles to show
git-svn-id: http://skia.googlecode.com/svn/trunk@976
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Tue, 22 Mar 2011 01:32:34 +0000 (01:32 +0000)]
map canonical css names to real fonts
git-svn-id: http://skia.googlecode.com/svn/trunk@975
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 21 Mar 2011 21:38:40 +0000 (21:38 +0000)]
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
reed@google.com [Mon, 21 Mar 2011 21:25:35 +0000 (21:25 +0000)]
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
bsalomon@google.com [Mon, 21 Mar 2011 21:10:33 +0000 (21:10 +0000)]
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
reed@google.com [Mon, 21 Mar 2011 20:33:42 +0000 (20:33 +0000)]
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
bsalomon@google.com [Mon, 21 Mar 2011 19:51:57 +0000 (19:51 +0000)]
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
reed@google.com [Mon, 21 Mar 2011 17:45:15 +0000 (17:45 +0000)]
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
bsalomon@google.com [Mon, 21 Mar 2011 13:34:23 +0000 (13:34 +0000)]
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
mike@reedtribe.org [Mon, 21 Mar 2011 00:53:39 +0000 (00:53 +0000)]
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
mike@reedtribe.org [Sun, 20 Mar 2011 20:19:16 +0000 (20:19 +0000)]
add draw sample
git-svn-id: http://skia.googlecode.com/svn/trunk@966
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sat, 19 Mar 2011 17:27:49 +0000 (17:27 +0000)]
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
scroggo [Fri, 18 Mar 2011 22:09:01 +0000 (22:09 +0000)]
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
scroggo [Fri, 18 Mar 2011 21:43:03 +0000 (21:43 +0000)]
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
reed@google.com [Fri, 18 Mar 2011 21:23:45 +0000 (21:23 +0000)]
fix scalar math to work with float and fixed
git-svn-id: http://skia.googlecode.com/svn/trunk@962
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 18 Mar 2011 20:53:44 +0000 (20:53 +0000)]
fix warnings of int->float and double->float
git-svn-id: http://skia.googlecode.com/svn/trunk@961
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Fri, 18 Mar 2011 20:41:44 +0000 (20:41 +0000)]
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
twiz@google.com [Fri, 18 Mar 2011 17:38:11 +0000 (17:38 +0000)]
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
bsalomon@google.com [Fri, 18 Mar 2011 15:10:06 +0000 (15:10 +0000)]
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
reed@google.com [Fri, 18 Mar 2011 14:47:36 +0000 (14:47 +0000)]
fix warnings (local storage too small, int->scalar)
git-svn-id: http://skia.googlecode.com/svn/trunk@957
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 18 Mar 2011 14:44:42 +0000 (14:44 +0000)]
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
bsalomon@google.com [Fri, 18 Mar 2011 14:29:44 +0000 (14:29 +0000)]
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
mike@reedtribe.org [Fri, 18 Mar 2011 10:33:47 +0000 (10:33 +0000)]
use SkSafeUnref()
git-svn-id: http://skia.googlecode.com/svn/trunk@954
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 17 Mar 2011 17:48:04 +0000 (17:48 +0000)]
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
twiz@google.com [Thu, 17 Mar 2011 04:14:52 +0000 (04:14 +0000)]
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
bsalomon@google.com [Wed, 16 Mar 2011 20:10:48 +0000 (20:10 +0000)]
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
reed@google.com [Wed, 16 Mar 2011 20:02:59 +0000 (20:02 +0000)]
update dox for setLooper()
update some { } styles
git-svn-id: http://skia.googlecode.com/svn/trunk@948
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 16 Mar 2011 12:52:03 +0000 (12:52 +0000)]
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
reed@google.com [Wed, 16 Mar 2011 12:10:02 +0000 (12:10 +0000)]
add fling
git-svn-id: http://skia.googlecode.com/svn/trunk@946
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Wed, 16 Mar 2011 00:31:36 +0000 (00:31 +0000)]
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
ctguil@chromium.org [Tue, 15 Mar 2011 21:27:08 +0000 (21:27 +0000)]
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
reed@google.com [Tue, 15 Mar 2011 20:56:58 +0000 (20:56 +0000)]
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
reed@google.com [Tue, 15 Mar 2011 19:15:15 +0000 (19:15 +0000)]
need a separate texture for each maskformat in atlasmgr
git-svn-id: http://skia.googlecode.com/svn/trunk@942
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 15 Mar 2011 19:09:25 +0000 (19:09 +0000)]
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
twiz@google.com [Tue, 15 Mar 2011 16:12:21 +0000 (16:12 +0000)]
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
reed@google.com [Tue, 15 Mar 2011 15:40:16 +0000 (15:40 +0000)]
support lcd16 in text atlas (sans shader support)
git-svn-id: http://skia.googlecode.com/svn/trunk@939
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo [Tue, 15 Mar 2011 15:15:15 +0000 (15:15 +0000)]
Add a sample application that runs on unix.
git-svn-id: http://skia.googlecode.com/svn/trunk@938
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Mon, 14 Mar 2011 21:23:01 +0000 (21:23 +0000)]
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
djsollen@google.com [Mon, 14 Mar 2011 20:30:14 +0000 (20:30 +0000)]
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
reed@google.com [Mon, 14 Mar 2011 18:09:32 +0000 (18:09 +0000)]
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
reed@google.com [Mon, 14 Mar 2011 17:45:33 +0000 (17:45 +0000)]
disable lcd format for lcd16 as well
git-svn-id: http://skia.googlecode.com/svn/trunk@934
2bbb7eff-a529-9590-31e7-
b0007b416f81
twiz@google.com [Mon, 14 Mar 2011 16:58:39 +0000 (16:58 +0000)]
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
reed@google.com [Mon, 14 Mar 2011 16:44:56 +0000 (16:44 +0000)]
add LCD16 copy routine
git-svn-id: http://skia.googlecode.com/svn/trunk@932
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 14 Mar 2011 15:08:44 +0000 (15:08 +0000)]
use system font path when building on the mac
git-svn-id: http://skia.googlecode.com/svn/trunk@931
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 14 Mar 2011 15:08:03 +0000 (15:08 +0000)]
work around linker-error when building on the Mac
git-svn-id: http://skia.googlecode.com/svn/trunk@930
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 14 Mar 2011 13:31:16 +0000 (13:31 +0000)]
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
reed@google.com [Mon, 14 Mar 2011 13:20:04 +0000 (13:20 +0000)]
rebaseline shadows on gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@927
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 11 Mar 2011 20:09:42 +0000 (20:09 +0000)]
undo recent addition of kLCD16_Format to FormatIsLCD()
git-svn-id: http://skia.googlecode.com/svn/trunk@926
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 11 Mar 2011 20:08:25 +0000 (20:08 +0000)]
add tristate toggle 'l' for lcd text drawing
git-svn-id: http://skia.googlecode.com/svn/trunk@925
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Fri, 11 Mar 2011 16:45:00 +0000 (16:45 +0000)]
Fixes shadow colors with alpha value smaller that one. Results were too transparent.
code review: codereview.appspot.com/
4267052
skia bug: 170
git-svn-id: http://skia.googlecode.com/svn/trunk@924
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Fri, 11 Mar 2011 15:42:51 +0000 (15:42 +0000)]
support lcd16 mask format
convert line-endings to unix style (the default for skia)
git-svn-id: http://skia.googlecode.com/svn/trunk@923
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Thu, 10 Mar 2011 22:50:28 +0000 (22:50 +0000)]
Use Type3 fonts for platforms that don't yet support SkFontHost::GetAdvancedTypefaceMetrics.
Review URL: http://codereview.appspot.com/
4273041
git-svn-id: http://skia.googlecode.com/svn/trunk@922
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 10 Mar 2011 19:40:34 +0000 (19:40 +0000)]
Fix warnings of SkScalar -> int conversions, by using SkScalarRound()
git-svn-id: http://skia.googlecode.com/svn/trunk@921
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 10 Mar 2011 19:25:22 +0000 (19:25 +0000)]
add kLCD16_Format to the list in FormatIsLCD()
git-svn-id: http://skia.googlecode.com/svn/trunk@920
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 10 Mar 2011 19:20:15 +0000 (19:20 +0000)]
Add complex clip gm sample and cleanup unused headers/code in SampleComplexClip
git-svn-id: http://skia.googlecode.com/svn/trunk@919
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 10 Mar 2011 18:24:15 +0000 (18:24 +0000)]
Remove offscreen GL support from SampleApp and SkOSWindow. This never worked anywhere but Mac and it doesn't work there anymore.
git-svn-id: http://skia.googlecode.com/svn/trunk@918
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 10 Mar 2011 15:06:27 +0000 (15:06 +0000)]
check-point for kLCD16_Format mask support
disabled for now in SkPaint.cpp (for further testing)
git-svn-id: http://skia.googlecode.com/svn/trunk@917
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 10 Mar 2011 14:53:38 +0000 (14:53 +0000)]
Remove "true ||" in conditional that was accidentally checked in.
git-svn-id: http://skia.googlecode.com/svn/trunk@916
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 10 Mar 2011 14:51:57 +0000 (14:51 +0000)]
Delete GL tex ID when last of GrGLTexture or GrGLRenderTarget that reference it is destroyed
git-svn-id: http://skia.googlecode.com/svn/trunk@915
2bbb7eff-a529-9590-31e7-
b0007b416f81