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

Issue 204903002: Fix accessBitmap() with deferred clear, GPU path. (Closed)

Created:
6 years, 9 months ago by Stephen White
Modified:
6 years, 9 months ago
Reviewers:
bsalomon, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix accessBitmap() with deferred clear, GPU path. When accessBitmap() is called on a GPU device which has deferred clear, and no drawing has been done, force the clear before returning the bitmap. This is covered by the top right test case in the imagefilterscropexpand GM, where an offset image filter is drawn but the resulting bitmap is cropped out, resulting in no drawing to the offscreen. It should be empty, but without this fix it results in garbage (previous scratch texture contents). BUG=skia: R=bsalomon@google.com Committed: https://code.google.com/p/skia/source/detail?r=13860

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M include/gpu/SkGpuDevice.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Stephen White
Brian: PTAL. Thanks!
6 years, 9 months ago (2014-03-19 18:09:20 UTC) #1
bsalomon
Nice find. LGTM.
6 years, 9 months ago (2014-03-19 18:15:21 UTC) #2
Stephen White
Committed patchset #1 manually as r13860 (presubmit successful).
6 years, 9 months ago (2014-03-19 18:24:08 UTC) #3
reed1
please please please tell me we have a plan to make all of this work ...
6 years, 9 months ago (2014-03-19 18:26:44 UTC) #4
Stephen White
On 2014/03/19 18:26:44, reed1 wrote: > please please please tell me we have a plan ...
6 years, 9 months ago (2014-03-19 18:30:01 UTC) #5
reed1
6 years, 9 months ago (2014-03-19 18:53:09 UTC) #6
Message was sent while issue was closed.
Definitely the ones I wrote are now using the wrong pattern. We need something,
either SkSurface, or some new abstraction created just for imagefilter-pipeline,
to do this.

Powered by Google App Engine
This is Rietveld 408576698