Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 238253005: Fixes for SkPictureShader. (Closed)

Created:
6 years, 8 months ago by scroggo
Modified:
6 years, 8 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@shaders
Visibility:
Public.

Description

Fixes for SkPictureShader. Update comment in header to make it more clear that the picture should be unaltered after creating the shader. We want our shaders to be immutable, and this supports that. Make the factory return NULL if the shader would have never drawn anyway i.e. for a null picture or picture with no width/height. Addresses comments I brought up in https://codereview.chromium.org/221923007/#msg16. BUG=skia:1976 Committed: http://code.google.com/p/skia/source/detail?r=14288

Patch Set 1 #

Total comments: 9

Patch Set 2 : Amend comment, remove unnecessary backwards compat., add test. #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -18 lines) Patch
M gyp/tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkShader.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M src/core/SkPictureShader.cpp View 1 2 2 chunks +9 lines, -17 lines 0 comments Download
A tests/PictureShaderTest.cpp View 1 2 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
scroggo
https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h#newcode381 include/core/SkShader.h:381: * FIXME: It may make more sense to take ...
6 years, 8 months ago (2014-04-15 19:15:48 UTC) #1
robertphillips
https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h#newcode381 include/core/SkShader.h:381: * FIXME: It may make more sense to take ...
6 years, 8 months ago (2014-04-15 19:26:44 UTC) #2
reed1
api lgtm
6 years, 8 months ago (2014-04-15 19:40:29 UTC) #3
f(malita)
lgtm https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h#newcode381 include/core/SkShader.h:381: * FIXME: It may make more sense to ...
6 years, 8 months ago (2014-04-15 19:40:40 UTC) #4
scroggo
https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h File include/core/SkShader.h (right): https://codereview.chromium.org/238253005/diff/1/include/core/SkShader.h#newcode381 include/core/SkShader.h:381: * FIXME: It may make more sense to take ...
6 years, 8 months ago (2014-04-15 20:33:19 UTC) #5
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 8 months ago (2014-04-21 18:55:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/238253005/40001
6 years, 8 months ago (2014-04-21 18:55:11 UTC) #7
commit-bot: I haz the power
6 years, 8 months ago (2014-04-21 19:33:18 UTC) #8
Message was sent while issue was closed.
Change committed as 14288

Powered by Google App Engine
This is Rietveld 408576698