Commit Graph

4116 Commits

Author SHA1 Message Date
bsalomon@google.com
70fc152576 Fix the stencil rules to perfom an rdiff with an inverse path
Review URL: http://codereview.appspot.com/6336056/


git-svn-id: http://skia.googlecode.com/svn/trunk@4328 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 18:03:46 +00:00
bsalomon@google.com
ce7357df6a Add header needed to use the SWAP_PER_DRAW debug facility on windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@4327 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:49:25 +00:00
tomhudson@google.com
f13f588046 Add GrPaint::*StageEnabled() and GrDrawState::stageEnabled() functions.
These wrap the question of "is this stage of the shader enabled?" so that
we can change the semantics - previously iff there was a texture, now
if there is a texture OR a GrCustomStage, soon (post-cl 6306097) iff there
is a GrCustomStage, which at that point will hold whatever texture is
necessary.

http://codereview.appspot.com/6306104/



git-svn-id: http://skia.googlecode.com/svn/trunk@4325 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:27:28 +00:00
robertphillips@google.com
f41f4d2257 Enable Scratch texture detach in SW path renderer's onDrawPath (take 2)
http://codereview.appspot.com/6331057/



git-svn-id: http://skia.googlecode.com/svn/trunk@4324 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:26:29 +00:00
djsollen@google.com
edae1416ba Fix metrics test to no longer include the cpp.
The inclusion of the cpp caused linker errors when building skia
components as shared libaries for inclusion in an Android app.
Review URL: https://codereview.appspot.com/6338063

git-svn-id: http://skia.googlecode.com/svn/trunk@4323 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 17:01:46 +00:00
tomhudson@google.com
b213ed8b76 Simplify vertex layout bitfields by making Position-as-texcoords the
default.

http://codereview.appspot.com/6337050/



git-svn-id: http://skia.googlecode.com/svn/trunk@4321 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 15:22:12 +00:00
robertphillips@google.com
1807d0d0de Reverting r4319
git-svn-id: http://skia.googlecode.com/svn/trunk@4320 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 15:17:32 +00:00
robertphillips@google.com
042cb4769f Enable Scratch texture detach in SW path renderer's onDrawPath
http://codereview.appspot.com/6331057/



git-svn-id: http://skia.googlecode.com/svn/trunk@4319 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 14:37:11 +00:00
reed@google.com
34342f6f51 export flags on the state of the world when a picture was serialized.
e.g. don't read/write functionptrs in that case (sizeof may be different for one)
Review URL: https://codereview.appspot.com/6331050

git-svn-id: http://skia.googlecode.com/svn/trunk@4318 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 14:36:28 +00:00
bungeman@google.com
ec95a4ae45 Remove multi-byte character constants.
http://codereview.appspot.com/6305117/


git-svn-id: http://skia.googlecode.com/svn/trunk@4317 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 14:26:48 +00:00
djsollen@google.com
5df2a99861 [android] Add an API to load customized font config for testing.
When running WebKit layout tests, we need to load some fonts from Linux to
match baselines of chromium linux. However, font config file is
hard-coded in Skia now. This change add an API to customize font config
in skia.

https://codereview.appspot.com/6296067/

git-svn-id: http://skia.googlecode.com/svn/trunk@4316 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 13:58:22 +00:00
tomhudson@google.com
3eee8fbe0f Fix misplaced return in GrDrawState::stageDisabled().
Original patch by guanqun.lu@gmail.com

http://codereview.appspot.com/6338058/



git-svn-id: http://skia.googlecode.com/svn/trunk@4315 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-25 12:30:34 +00:00
senorblanco@chromium.org
f49b429cef Raster implementation of diffuse and specular lighting filters. Externally,
the caller instantiates a light (distant, point or spot), and an
SkDiffuseLightingFilter or SkSpecularLightingImageFilter with that light.  A
Sobel edge detection filter is applied to the alpha of the incoming bitmap, and
the result is used as a height map for lighting calculations.

Review URL:  http://codereview.appspot.com/6302101/



git-svn-id: http://skia.googlecode.com/svn/trunk@4314 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 21:01:23 +00:00
tomhudson@google.com
7d6afdd795 Extend texture release on GrDrawState to also handle custom stages.
Add asserts to GrContext::setPaint() to make sure we're keeping things
cleaned up.
Remove double-call of setPaint() during text context initialization.

http://codereview.appspot.com/6324046/



git-svn-id: http://skia.googlecode.com/svn/trunk@4313 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 20:10:50 +00:00
twiz@google.com
6cf5303b93 Adding files skipped from previous patch: http://code.google.com/p/skia/source/detail?r=4310
Review URL: https://codereview.appspot.com/6339043/

git-svn-id: http://skia.googlecode.com/svn/trunk@4312 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:55:55 +00:00
reed@google.com
953ee5fa2b rebaseline after recent aa-clipping fix on gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@4311 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:29:40 +00:00
twiz@google.com
a31b8bb58d Refactoring in preparation for adding the picture benchmarking program.
Review URL: https://codereview.appspot.com/6339043/

git-svn-id: http://skia.googlecode.com/svn/trunk@4310 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:24:56 +00:00
bsalomon@google.com
1b1e201ea3 Revert #if 0ed out code accidentally committed as part of r4299.
git-svn-id: http://skia.googlecode.com/svn/trunk@4309 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 18:18:08 +00:00
reed@google.com
6756209ee0 Expand header in serialized pictures
Make chunk/tag reading allow for optional and (somewhat) out-of-order chunks.
Return empty picture instead of throwing on error
Review URL: https://codereview.appspot.com/6329049

git-svn-id: http://skia.googlecode.com/svn/trunk@4308 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 15:38:39 +00:00
reed@google.com
e5f48b92b3 change gm option from -config to --config, to match the double-dash convention of
all of its other options.
Review URL: https://codereview.appspot.com/6337044

git-svn-id: http://skia.googlecode.com/svn/trunk@4307 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 15:27:39 +00:00
bsalomon@google.com
07fc0d178e Revert r4287. Large numbers of textures created by random gradients can cause poor driver performance (at least on Mac)
BUG=670



git-svn-id: http://skia.googlecode.com/svn/trunk@4306 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 15:15:59 +00:00
junov@chromium.org
89e615d260 Removing redundant calls to GEN_ID_INC_EVAL in SkPaint.cpp
Review URL: http://codereview.appspot.com/6302099/



git-svn-id: http://skia.googlecode.com/svn/trunk@4305 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 14:37:21 +00:00
robertphillips@google.com
646a2ff2eb Image rebaseline for r4303
git-svn-id: http://skia.googlecode.com/svn/trunk@4304 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 14:20:47 +00:00
robertphillips@google.com
a0a66c1183 Fix clipping of ovals on top & right
http://codereview.appspot.com/6294091/



git-svn-id: http://skia.googlecode.com/svn/trunk@4303 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 13:14:29 +00:00
reed@google.com
ed38495c7c add PictInfo chunk to serialized pictures
Review URL: https://codereview.appspot.com/6325048

git-svn-id: http://skia.googlecode.com/svn/trunk@4302 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 13:12:17 +00:00
robertphillips@google.com
15c0fea699 AutoScratchTexture can now release its texture and it will return to the texture cache when freed
http://codereview.appspot.com/6262043/



git-svn-id: http://skia.googlecode.com/svn/trunk@4301 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:41:43 +00:00
bsalomon@google.com
5e24129831 Move GrTemplates.h to src
Review URL: http://codereview.appspot.com/6333053/


git-svn-id: http://skia.googlecode.com/svn/trunk@4300 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:34:22 +00:00
bsalomon@google.com
9e553c6e7c Minor GrStencilSettings cleanup
Review URL: http://codereview.appspot.com/6329044/



git-svn-id: http://skia.googlecode.com/svn/trunk@4299 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:23:29 +00:00
robertphillips@google.com
9ec075366e Altered GrDrawState to always ref texture and render target
http://codereview.appspot.com/6251049/



git-svn-id: http://skia.googlecode.com/svn/trunk@4298 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 12:01:30 +00:00
epoger@google.com
1e4b990679 another whitespace change to trigger buildbots, now that new win7 bots should work
git-svn-id: http://skia.googlecode.com/svn/trunk@4297 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 07:58:36 +00:00
epoger@google.com
4d1d742a1d Whitespace change to trigger all buildbots
git-svn-id: http://skia.googlecode.com/svn/trunk@4296 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-22 00:33:28 +00:00
epoger@google.com
89e2248eac Add empty directories to hold expected GM images for Shuttle PCs running Win7 using Intel GPU
git-svn-id: http://skia.googlecode.com/svn/trunk@4294 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 22:04:14 +00:00
robertphillips@google.com
7d501ab502 Add GrSurface parent class above GrTexture & GrRenderTarget
http://codereview.appspot.com/6297092/



git-svn-id: http://skia.googlecode.com/svn/trunk@4292 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 21:09:06 +00:00
robertphillips@google.com
15e9d3e66e Expanded distribution of instance counting
http://codereview.appspot.com/6300114/



git-svn-id: http://skia.googlecode.com/svn/trunk@4291 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 20:25:03 +00:00
robertphillips@google.com
c82a8b7aa4 Fixed two bugs in SW-only clip mask generation
http://codereview.appspot.com/6306086/



git-svn-id: http://skia.googlecode.com/svn/trunk@4290 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 20:15:48 +00:00
bsalomon@google.com
7aa876bfbf Record pixel ref's gen ID in picture
Review URL: http://codereview.appspot.com/6325046/



git-svn-id: http://skia.googlecode.com/svn/trunk@4289 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 20:13:04 +00:00
bsalomon@google.com
a320194e42 Make GrClipMaskManager configure the stencil and scissor on GrGpu
Review URL: http://codereview.appspot.com/6308096/



git-svn-id: http://skia.googlecode.com/svn/trunk@4288 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 19:58:20 +00:00
bsalomon@google.com
8f7e1dac5c Remove count budget from resource cache
Review URL: http://codereview.appspot.com/6312052/



git-svn-id: http://skia.googlecode.com/svn/trunk@4287 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 19:48:32 +00:00
reed@google.com
c778cda14c rebaselines after dashing fix to gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@4286 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-21 19:19:17 +00:00
reed@google.com
a4c6e4d6d3 landing mirror of https://codereview.appspot.com/6304098/
by kondapallykalyan

fixing  compiler warnings in SkAAClip



git-svn-id: http://skia.googlecode.com/svn/trunk@4283 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-20 14:29:50 +00:00
bsalomon@google.com
4da34e36cb Add GrMemoryPool as a helper to override operators new/delete
Review URL: http://codereview.appspot.com/6306090/



git-svn-id: http://skia.googlecode.com/svn/trunk@4282 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-19 15:40:27 +00:00
tomhudson@google.com
50e4ce0552 Fix memory leaks.
http://codereview.appspot.com/6301098/



git-svn-id: http://skia.googlecode.com/svn/trunk@4281 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-19 15:27:50 +00:00
reed@google.com
2999f789c7 landing http://codereview.appspot.com/6306095/ by guanqun
fix the following warning for SkColorTable

../src/core/SkColorTable.cpp: In copy constructor
‘SkColorTable::SkColorTable(const SkColorTable&)’:
../src/core/SkColorTable.cpp:30:1: warning: base class ‘class SkFlattenable’
should be explicitly initialized in the copy constructor [-Wextra]



git-svn-id: http://skia.googlecode.com/svn/trunk@4280 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-19 15:27:46 +00:00
bsalomon@google.com
276c1fabc2 fix incorrect GPU rendering for path inverse fill when path is outside the clip
Committed on behalf of Guanqun.Lu@gmail.com

Review URL: http://codereview.appspot.com/6296087/



git-svn-id: http://skia.googlecode.com/svn/trunk@4279 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-19 13:22:45 +00:00
bsalomon@google.com
75356a713f Fixed compile warning in SkOSWindow_unix.cpp
Committed on behalf of kondapallykalyan@gmail.com

Review URL: http://codereview.appspot.com/6302092/



git-svn-id: http://skia.googlecode.com/svn/trunk@4278 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-19 13:08:59 +00:00
epoger@google.com
398e3afe54 Remove linux_shared from list of trybots to run, because that trybot disappeared in http://crrev.com/141759
TBR=reed@google.com
Review URL: https://codereview.appspot.com/6295097

git-svn-id: http://skia.googlecode.com/svn/trunk@4277 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 15:37:25 +00:00
caryclark@google.com
11f6614727 add missing dependency
git-svn-id: http://skia.googlecode.com/svn/trunk@4276 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 14:40:51 +00:00
reed@google.com
81275391b1 add MS UI GOTHIC to list of bad fonts.
specify per-rect-edge outset for bad fonts

http://code.google.com/p/chromium/issues/detail?id=121586



git-svn-id: http://skia.googlecode.com/svn/trunk@4275 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 14:08:56 +00:00
bsalomon@google.com
c8f7f47afa Store clip mask location in GrClipMaskManager as a enum rather than two bools
Review URL: http://codereview.appspot.com/6306092/



git-svn-id: http://skia.googlecode.com/svn/trunk@4274 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 13:44:51 +00:00
bsalomon@google.com
b702c0fcc0 GPU would ignore the path effect when its stroke is zero, fix it
Committed on behalf of Guanqun.Lu@gmail.com

Review URL: http://codereview.appspot.com/6301092




git-svn-id: http://skia.googlecode.com/svn/trunk@4273 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 12:52:56 +00:00