Commit Graph

3904 Commits

Author SHA1 Message Date
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
bsalomon@google.com
e76b7ccb86 fix gl error of 'invalid enum' from GL_COLOR_TABLE
Committed on behalf of Guanqun.Lu@gmail.com

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



git-svn-id: http://skia.googlecode.com/svn/trunk@4272 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 12:47:06 +00:00
bsalomon@google.com
845eafddb0 show meaningful GL error strings during debugging
Committed on behalf of Guanqun.Lu@gmail.com

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



git-svn-id: http://skia.googlecode.com/svn/trunk@4271 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-18 12:27:29 +00:00
bsalomon@google.com
fc0d23a6ba Avoid un-necessary re-calculations of width in for loop of emitFS function
Committed on behalf of kondapallykalyan@gmail.com

Review URL: https://codereview.appspot.com/6294075/



git-svn-id: http://skia.googlecode.com/svn/trunk@4270 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 21:50:15 +00:00
bsalomon@google.com
13b85aab6e Give GrClipMaskManager a GrGpu*
Review URL: http://codereview.appspot.com/6301090/



git-svn-id: http://skia.googlecode.com/svn/trunk@4269 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 21:09:40 +00:00
bsalomon@google.com
0f1c10b3fd Remove unused function left in GrGLProgram.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@4268 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 20:36:33 +00:00
reed@google.com
b59ed51564 add test for http://code.google.com/p/chromium/issues/detail?id=131181
git-svn-id: http://skia.googlecode.com/svn/trunk@4266 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 18:26:04 +00:00
bsalomon@google.com
945bbe1456 Suppress annoying printf in GM when MSAA is not supported.
git-svn-id: http://skia.googlecode.com/svn/trunk@4265 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 14:30:34 +00:00
reed@google.com
5a121add5e add more font names to our extra-bottom-space hack
http://code.google.com/p/chromium/issues/detail?id=130842

Change cached names to be UTF8 encoded, since we now have some non-ascii names



git-svn-id: http://skia.googlecode.com/svn/trunk@4264 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 14:27:15 +00:00
bsalomon@google.com
c345c4279b Add strings to debug/null interfaces glGetString
Review URL: http://codereview.appspot.com/6294062/



git-svn-id: http://skia.googlecode.com/svn/trunk@4263 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 14:16:00 +00:00
bsalomon@google.com
c0af317331 TLS GrContext count
Review URL: http://codereview.appspot.com/6298077/


git-svn-id: http://skia.googlecode.com/svn/trunk@4262 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 14:10:09 +00:00
robertphillips@google.com
f69a11b5c5 Use GrAARectRenderer in GPU AA clip mask generation
http://codereview.appspot.com/6300097/



git-svn-id: http://skia.googlecode.com/svn/trunk@4261 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 13:58:07 +00:00
borenet@google.com
14ca1d33bc Revert r4259
git-svn-id: http://skia.googlecode.com/svn/trunk@4260 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-06-15 13:46:44 +00:00