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

Issue 866773002: Use an image generator to back SkPictureShader tiles. (Closed)

Created:
5 years, 11 months ago by f(malita)
Modified:
5 years, 10 months ago
Reviewers:
hal.canary, mtklein, reed2, reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use an image generator to back SkPictureShader tiles. To avoid lifetime issues for tiles backed by discardable memory, use an image generator to re-generate them on the fly. With this CL, we are now caching bitmap shaders wrapping discardable pixel ref bitmaps backed by picture image generators. (the CL also includes some minor/unrelated SkPictureShader cleanup) BUG=skia:3220 R=reed@google.com,halcanary@google.com Committed: https://skia.googlesource.com/skia/+/4739955e98ba86900a5bbac0e3661601427a54d4

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebased #

Patch Set 3 : preserve LCD text comment #

Total comments: 2

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -37 lines) Patch
M src/core/SkPictureShader.h View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M src/core/SkPictureShader.cpp View 1 2 3 6 chunks +54 lines, -33 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
f(malita)
5 years, 11 months ago (2015-01-22 15:23:50 UTC) #2
f(malita)
https://codereview.chromium.org/866773002/diff/1/src/core/SkPictureShader.cpp File src/core/SkPictureShader.cpp (right): https://codereview.chromium.org/866773002/diff/1/src/core/SkPictureShader.cpp#newcode121 src/core/SkPictureShader.cpp:121: return sizeof(fKey) + sizeof(SkShader) + fBitmapBytes; Is this a ...
5 years, 11 months ago (2015-01-22 15:46:00 UTC) #3
hal.canary
ImageGenerator seems like the right thing to use. That part looks good to me. I ...
5 years, 11 months ago (2015-01-22 16:30:29 UTC) #4
f(malita)
Whoops, is it me or is SkPixelRef::isLocked() not thread-safe? http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-TSAN-Trybot/builds/65/steps/dm/logs/stdio WARNING: ThreadSanitizer: data race (pid=19278) ...
5 years, 11 months ago (2015-01-22 16:33:15 UTC) #6
hal.canary
On 2015/01/22 16:33:15, f(malita) wrote: > Whoops, is it me or is SkPixelRef::isLocked() not thread-safe? ...
5 years, 11 months ago (2015-01-22 17:10:32 UTC) #7
f(malita)
I believe SkPixelRef::isLocked() has been taken care of (https://codereview.chromium.org/940083002). PTAL.
5 years, 10 months ago (2015-02-24 20:02:00 UTC) #8
reed2
lgtm https://codereview.chromium.org/866773002/diff/40001/src/core/SkPictureShader.h File src/core/SkPictureShader.h (right): https://codereview.chromium.org/866773002/diff/40001/src/core/SkPictureShader.h#newcode26 src/core/SkPictureShader.h:26: virtual ~SkPictureShader() {} can probably just remove this ...
5 years, 10 months ago (2015-02-24 20:18:20 UTC) #10
f(malita)
https://codereview.chromium.org/866773002/diff/40001/src/core/SkPictureShader.h File src/core/SkPictureShader.h (right): https://codereview.chromium.org/866773002/diff/40001/src/core/SkPictureShader.h#newcode26 src/core/SkPictureShader.h:26: virtual ~SkPictureShader() {} On 2015/02/24 20:18:20, reed2 wrote: > ...
5 years, 10 months ago (2015-02-24 20:39:30 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/866773002/60001
5 years, 10 months ago (2015-02-24 20:39:55 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/4739955e98ba86900a5bbac0e3661601427a54d4
5 years, 10 months ago (2015-02-24 21:03:01 UTC) #15
f(malita)
5 years, 10 months ago (2015-02-26 01:45:51 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/956143002/ by fmalita@chromium.org.

The reason for reverting is: TSAN troubles..

Powered by Google App Engine
This is Rietveld 408576698