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

Issue 12567025: Integrating SkSurface with SkDeferredCanvas (Closed)

Created:
7 years, 9 months ago by Justin Novosad
Modified:
7 years, 7 months ago
CC:
skia-review_googlegroups.com, robertphillips, senorblanco
Visibility:
Public.

Description

Integrating SkSurface with SkDeferredCanvas * Adding SkSurface_Gpu into the build. * Adding overwite optimizations to surface copyOnWrite * Changed general behavior of SkSurface_Gpu::onCopyOnWrite to assign the new texture to the Surface, and let the Image hold on to the old one. This is consistent with the behavior of SkSurface_Raster, and is important in case where the resources locked by the SkImage are referenced externally e.g. by a compositor. * Removed setTexture API from SkImage_Gpu * Added new SkDeferredCanvas constructor that takes an SkSurface * Unit tests for SkDeferredCanvas wrapping an SkSurface (raster & gpu)

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -88 lines) Patch
M gyp/core.gypi View 2 chunks +1 line, -2 lines 0 comments Download
M gyp/gpu.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkSurface.h View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 3 chunks +17 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkImagePriv.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 3 chunks +0 lines, -16 lines 0 comments Download
M src/image/SkSurface.cpp View 1 2 3 2 chunks +8 lines, -10 lines 1 comment Download
M src/image/SkSurface_Base.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 2 chunks +15 lines, -20 lines 0 comments Download
M src/image/SkSurface_Picture.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 2 3 2 chunks +15 lines, -7 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 11 chunks +70 lines, -18 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 2 3 chunks +66 lines, -0 lines 0 comments Download
M tests/TestClassDef.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Justin Novosad
PTAL
7 years, 9 months ago (2013-03-26 20:26:21 UTC) #1
bsalomon
On 2013/03/26 20:26:21, junov wrote: > PTAL The parts I get look OK :) "overwrite" ...
7 years, 9 months ago (2013-03-26 20:40:11 UTC) #2
Stephen White
https://codereview.chromium.org/12567025/diff/15001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/12567025/diff/15001/include/core/SkSurface.h#newcode87 include/core/SkSurface.h:87: void notifyContentChanged(bool overwrite = false); Bikeshed nit: maybe "willOverwrite", ...
7 years, 9 months ago (2013-03-26 20:51:43 UTC) #3
Justin Novosad
New patch addresses all review comments so far. I went for "canDiscardContents".
7 years, 9 months ago (2013-03-26 21:13:14 UTC) #4
reed1
Perhaps we can simplify this CL into smaller parts? 1. do we need SkSurface::notifyContentChanged() at ...
7 years, 9 months ago (2013-03-27 15:31:43 UTC) #5
Justin Novosad
On 2013/03/27 15:31:43, reed1 wrote: > Perhaps we can simplify this CL into smaller parts? ...
7 years, 9 months ago (2013-03-27 15:42:06 UTC) #6
Justin Novosad
> https://codereview.chromium.org/12567025/diff/21/src/image/SkSurface.cpp#newcode66 > src/image/SkSurface.cpp:66: SkASSERT(canvas->getSurfaceBase() == this || NULL == > fCachedImage); > Why this ...
7 years, 9 months ago (2013-03-27 16:58:15 UTC) #7
Justin Novosad
7 years, 8 months ago (2013-04-15 20:21:02 UTC) #8
Message was sent while issue was closed.
Review closed.  This stuff is landing in smaller chunks.

Powered by Google App Engine
This is Rietveld 408576698