Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3313)

Issue 6447068: Prevent deferred canvas from recording draw operations that use an SkPaint object that indirectly r… (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by junov1
Modified:
12 years, 3 months ago
Reviewers:
Leon, reed1
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Prevent deferred canvases from recording draw operations that use an SkPaint object that indirectly references a GPU resource. The specific case targeted by this patch is SkBitmapProcShaders that use an SkBitmap object that references a GPU texture. BUG=http://code.google.com/p/chromium/issues/detail?id=139204 Committed: https://code.google.com/p/skia/source/detail?r=4871

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -16 lines) Patch
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 11 chunks +52 lines, -16 lines 0 comments Download

Messages

Total messages: 10
junov1
12 years, 3 months ago (2012-07-31 17:43:07 UTC) #1
Leon
https://codereview.appspot.com/6447068/diff/1001/src/utils/SkDeferredCanvas.cpp File src/utils/SkDeferredCanvas.cpp (right): https://codereview.appspot.com/6447068/diff/1001/src/utils/SkDeferredCanvas.cpp#newcode37 src/utils/SkDeferredCanvas.cpp:37: AutoImmediateDrawIfNeeded(SkDeferredCanvas& canvas, const SkBitmap* bitmap, const SkPaint* paint) { ...
12 years, 3 months ago (2012-07-31 17:55:56 UTC) #2
junov1
Done. New patch.
12 years, 3 months ago (2012-07-31 17:59:41 UTC) #3
reed1
Can we do this at the call site, using existing APIs? if (!shader->asAGradient()) { if ...
12 years, 3 months ago (2012-07-31 19:15:43 UTC) #4
junov1
On 2012/07/31 19:15:43, reed1 wrote: > Can we do this at the call site, using ...
12 years, 3 months ago (2012-07-31 19:28:24 UTC) #5
reed1
On 2012/07/31 19:28:24, junov1 wrote: > On 2012/07/31 19:15:43, reed1 wrote: > > Can we ...
12 years, 3 months ago (2012-07-31 19:36:01 UTC) #6
junov1
On 2012/07/31 19:36:01, reed1 wrote: > On 2012/07/31 19:28:24, junov1 wrote: > > On 2012/07/31 ...
12 years, 3 months ago (2012-07-31 19:56:16 UTC) #7
junov1
On 2012/07/31 19:56:16, junov1 wrote: > On 2012/07/31 19:36:01, reed1 wrote: > > On 2012/07/31 ...
12 years, 3 months ago (2012-07-31 19:57:07 UTC) #8
junov1
New patch.
12 years, 3 months ago (2012-07-31 20:41:31 UTC) #9
Leon
12 years, 3 months ago (2012-07-31 20:50:48 UTC) #10
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b