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

Issue 14063015: Adding optimization to avoid image copy in SkSurface copy on write when content is discardable (Closed)

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

Description

Adding optimization to avoid image copy in SkSurface copy on write when content is discardable This patch also adds code to SkDeferredCanvas to trigger the optimization. TEST=DeferredSurfaceCopy bench, Surface unit test Committed: http://code.google.com/p/skia/source/detail?r=8797

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -35 lines) Patch
M include/core/SkSurface.h View 1 2 3 4 1 chunk +18 lines, -2 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkSurface.cpp View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M src/image/SkSurface_Base.h View 1 2 3 4 2 chunks +2 lines, -4 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 3 chunks +6 lines, -5 lines 0 comments Download
M src/image/SkSurface_Picture.cpp View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M src/image/SkSurface_Raster.cpp View 1 2 3 4 2 chunks +10 lines, -5 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 4 chunks +22 lines, -7 lines 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 4 3 chunks +8 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Justin Novosad
PTAL The DeferredSurfaceCopy micro benchmark validates the performance gain that is achieved by discarding discardable ...
7 years, 8 months ago (2013-04-17 14:38:04 UTC) #1
reed1
I like the idea of the new parameter, but find a boolean to be too ...
7 years, 8 months ago (2013-04-18 14:48:33 UTC) #2
Justin Novosad
Done. New Patch
7 years, 8 months ago (2013-04-18 18:55:36 UTC) #3
reed1
I think we should use the new enum in the copyonwrite methods too. Standard enum ...
7 years, 8 months ago (2013-04-18 19:27:09 UTC) #4
Justin Novosad
Whoops. I was counting on compile errors to make me propagate the enum to all ...
7 years, 8 months ago (2013-04-18 19:35:49 UTC) #5
reed1
lgtm
7 years, 8 months ago (2013-04-19 12:09:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/junov@chromium.org/14063015/21001
7 years, 8 months ago (2013-04-19 17:58:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/junov@chromium.org/14063015/21001
7 years, 8 months ago (2013-04-21 20:56:46 UTC) #8
commit-bot: I haz the power
7 years, 8 months ago (2013-04-22 14:28:05 UTC) #9
Message was sent while issue was closed.
Change committed as 8797

Powered by Google App Engine
This is Rietveld 408576698