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

Issue 261663003: First pass at pre-rendering saveLayers for GPU (Closed)

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

Description

First pass at pre-rendering saveLayers for GPU In the interest of getting something that would be potentially useable in M36 here is a version of the pull-layers-forward task that overloads SkPicturePlayback's draw functionality. In an ideal world this would add 2 SkPicturePlayback-derived classes (one to pre-render the layers, one to render the picture using the pre-rendered layers).

Patch Set 1 #

Patch Set 2 : Remove caching code #

Patch Set 3 : cleaned up #

Patch Set 4 : Cleaned up a bit #

Patch Set 5 : Fixed layer translation bug #

Patch Set 6 : Fixed unit test #

Patch Set 7 : Got working with BBH #

Patch Set 8 : Fixed comments #

Total comments: 2

Patch Set 9 : update to ToT #

Patch Set 10 : Reduce size of PlaybackReplacements in SkPicturePlayback.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -45 lines) Patch
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M src/core/SkPicturePlayback.h View 1 2 3 4 5 6 7 8 9 4 chunks +66 lines, -0 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +125 lines, -14 lines 0 comments Download
M src/core/SkPictureStateTree.h View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -1 line 0 comments Download
M src/core/SkPictureStateTree.cpp View 1 2 3 4 5 6 7 8 1 chunk +47 lines, -14 lines 0 comments Download
M src/gpu/GrPictureUtils.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/GrPictureUtils.cpp View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 3 chunks +139 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
robertphillips
6 years, 7 months ago (2014-05-07 14:12:48 UTC) #1
reed1
https://codereview.chromium.org/261663003/diff/120001/src/core/SkPicturePlayback.h File src/core/SkPicturePlayback.h (right): https://codereview.chromium.org/261663003/diff/120001/src/core/SkPicturePlayback.h#newcode268 src/core/SkPicturePlayback.h:268: class PlaybackReplacements { nit: can this guy live in ...
6 years, 7 months ago (2014-05-07 16:13:28 UTC) #2
robertphillips
https://codereview.chromium.org/261663003/diff/120001/src/core/SkPicturePlayback.h File src/core/SkPicturePlayback.h (right): https://codereview.chromium.org/261663003/diff/120001/src/core/SkPicturePlayback.h#newcode268 src/core/SkPicturePlayback.h:268: class PlaybackReplacements { SkGpuDevice needs access to it. I ...
6 years, 7 months ago (2014-05-07 16:52:03 UTC) #3
bsalomon
I defer to mike on this CL.
6 years, 7 months ago (2014-05-07 17:07:20 UTC) #4
robertphillips
Received verbal lgtm from Mike R.
6 years, 7 months ago (2014-05-07 21:25:28 UTC) #5
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 7 months ago (2014-05-07 21:25:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/261663003/160001
6 years, 7 months ago (2014-05-07 21:26:49 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-07 21:26:50 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-07 21:26:51 UTC) #9
bsalomon
On 2014/05/07 21:26:51, I haz the power (commit-bot) wrote: > No LGTM from a valid ...
6 years, 7 months ago (2014-05-07 21:28:57 UTC) #10
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 7 months ago (2014-05-07 21:29:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/261663003/160001
6 years, 7 months ago (2014-05-07 21:29:45 UTC) #12
robertphillips
committed as r14632
6 years, 7 months ago (2014-05-07 21:31:28 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-07 21:35:59 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 21:35:59 UTC) #15
Failed to apply patch for include/core/SkPicture.h:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file include/core/SkPicture.h
  Hunk #1 FAILED at 477.
  1 out of 1 hunk FAILED -- saving rejects to file include/core/SkPicture.h.rej

Patch:       include/core/SkPicture.h
Index: include/core/SkPicture.h
===================================================================
--- include/core/SkPicture.h	(revision 14614)
+++ include/core/SkPicture.h	(working copy)
@@ -477,6 +477,7 @@
     friend class SkPicturePlayback;
     friend class SkPictureRecorder;
     friend class SkGpuDevice;
+    friend class GrGatherCanvas;
     friend class GrGatherDevice;
     friend class SkDebugCanvas;

Powered by Google App Engine
This is Rietveld 408576698