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

Issue 14263015: Fix crash with SkDeferredCanvas+SkSurface integration with in order draw buffer. (Closed)

Created:
7 years, 8 months ago by Justin Novosad
Modified:
7 years, 8 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Fix crash with SkDeferredCanvas+SkSurface integration with in order draw buffer. The fImmediateDevice member of DeferredDevice (SkDeferredCanvas.cpp) was becoming invalid after a fork of the backingstore in SkSurface_Gpu cause the device to be substituted. New unit test code was to exercise SkSurface copy on write with draws that are deferred in GrInOrderDrawBuffer. The bad pointer was causing the test to crash. TEST=skia unit test DeferredCanvas, subtest TestDeferredCanvasSurface Committed: https://code.google.com/p/skia/source/detail?r=8686

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M src/utils/SkDeferredCanvas.cpp View 9 chunks +10 lines, -13 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 1 chunk +13 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Justin Novosad
7 years, 8 months ago (2013-04-15 18:06:28 UTC) #1
bsalomon
7 years, 8 months ago (2013-04-15 18:13:40 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698