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

Issue 197123003: Proposed SkCanvas API for preLoading textures to VRAM v2.0 (Closed)

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

Description

Proposed SkCanvas API for preLoading textures to VRAM v2.0 This is an update to (Proposed SkCanvas API for preLoading textures to VRAM - https://codereview.chromium.org/192853002/). It takes into account in-person feedback on the initial proposal. The main feedback was to land this closer to where we will ultimately wind up with the reordered rendering capability (and don't have an SkCanvas entry point (yet)). Committed: http://code.google.com/p/skia/source/detail?r=13810 Committed: http://code.google.com/p/skia/source/detail?r=13822

Patch Set 1 #

Total comments: 4

Patch Set 2 : address code review issues #

Patch Set 3 : cleaned up #

Patch Set 4 : Attempt to dissuade the adventurous from trying the new interface #

Patch Set 5 : Fix upload from from location (should be the same as patch #3) #

Patch Set 6 : Attempt to dissuage the adventurous from trying the new interface (for real this time) #

Total comments: 4

Patch Set 7 : address code review comments #

Total comments: 2

Patch Set 8 : address code review comments #

Total comments: 1

Patch Set 9 : added a newline to the end of SkDevice.cpp #

Patch Set 10 : fix initializer list order #

Patch Set 11 : mac compiler can't take a hint #

Patch Set 12 : pull getCanvas out of SK_SUPPORT_GPU block #

Patch Set 13 : retry upload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -15 lines) Patch
M include/core/SkCanvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -0 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +37 lines, -3 lines 0 comments Download
M include/gpu/SkGpuDevice.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -0 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -0 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +24 lines, -5 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +42 lines, -0 lines 0 comments Download
M tools/PictureRenderer.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +6 lines, -7 lines 0 comments Download
M tools/render_pictures_main.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
robertphillips
6 years, 9 months ago (2014-03-12 15:11:22 UTC) #1
bsalomon
This seems like a big step in the right direction from the previous approach. It ...
6 years, 9 months ago (2014-03-12 15:34:34 UTC) #2
robertphillips
I think we have to wait and see if it makes sense to always precompute ...
6 years, 9 months ago (2014-03-13 12:43:42 UTC) #3
bsalomon
This seems like a good approach to me but I'd like to here from some ...
6 years, 9 months ago (2014-03-13 15:06:37 UTC) #4
robertphillips
Mike - could you chime in?
6 years, 9 months ago (2014-03-13 16:25:53 UTC) #5
reed1
https://codereview.chromium.org/197123003/diff/100001/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/197123003/diff/100001/include/core/SkDevice.h#newcode193 include/core/SkDevice.h:193: virtual bool EXPERIMENTAL_optimizedRender(SkPicture& picture); why & instead of * ...
6 years, 9 months ago (2014-03-13 16:28:10 UTC) #6
reed1
PS - thank you for making the names scary and ugly!
6 years, 9 months ago (2014-03-13 16:28:38 UTC) #7
robertphillips
https://codereview.chromium.org/197123003/diff/100001/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/197123003/diff/100001/include/core/SkDevice.h#newcode193 include/core/SkDevice.h:193: virtual bool EXPERIMENTAL_optimizedRender(SkPicture& picture); On 2014/03/13 16:28:10, reed1 wrote: ...
6 years, 9 months ago (2014-03-13 16:55:38 UTC) #8
reed1
https://codereview.chromium.org/197123003/diff/120001/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/197123003/diff/120001/include/core/SkDevice.h#newcode181 include/core/SkDevice.h:181: /** Not sure I follow why we have two ...
6 years, 9 months ago (2014-03-13 18:33:54 UTC) #9
robertphillips
https://codereview.chromium.org/197123003/diff/120001/include/core/SkDevice.h File include/core/SkDevice.h (right): https://codereview.chromium.org/197123003/diff/120001/include/core/SkDevice.h#newcode181 include/core/SkDevice.h:181: /** There are two possible landing points for this. ...
6 years, 9 months ago (2014-03-13 19:58:28 UTC) #10
robertphillips
PTAL this patch: renames SkBaseDevice::EXPERIMENTAL_optimizedRender to EXPERIMENTAL_drawPicture makes SkBaseDevice EXPERIMENTAL_optimize and EXPERIMENTAL_drawPicture protected adds an ...
6 years, 9 months ago (2014-03-14 13:37:36 UTC) #11
bsalomon
lgtm https://codereview.chromium.org/197123003/diff/140001/src/core/SkPicture.cpp File src/core/SkPicture.cpp (right): https://codereview.chromium.org/197123003/diff/140001/src/core/SkPicture.cpp#newcode200 src/core/SkPicture.cpp:200: if (id >= 1 << (8 * sizeof(Domain))) ...
6 years, 9 months ago (2014-03-14 13:59:43 UTC) #12
reed1
api lgtm
6 years, 9 months ago (2014-03-14 14:13:33 UTC) #13
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-14 16:59:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/197123003/140001
6 years, 9 months ago (2014-03-14 17:00:00 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 17:00:06 UTC) #16
commit-bot: I haz the power
Presubmit check for 197123003-140001 failed and returned exit status 1. Running presubmit commit checks ...
6 years, 9 months ago (2014-03-14 17:00:07 UTC) #17
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-14 17:01:38 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/197123003/150001
6 years, 9 months ago (2014-03-14 17:01:49 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 17:07:11 UTC) #20
commit-bot: I haz the power
Retried try job too often on Build-Mac10.8-Clang-x86-Release-Trybot for step(s) BuildSkiaLib http://108.170.219.164:10117/buildstatus?builder=Build-Mac10.8-Clang-x86-Release-Trybot&number=304
6 years, 9 months ago (2014-03-14 17:07:11 UTC) #21
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-14 17:10:56 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/197123003/170001
6 years, 9 months ago (2014-03-14 17:11:00 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-14 17:16:17 UTC) #24
commit-bot: I haz the power
Retried try job too often on Build-Mac10.8-Clang-x86-Release-Trybot for step(s) BuildSkiaLib http://108.170.219.164:10117/buildstatus?builder=Build-Mac10.8-Clang-x86-Release-Trybot&number=307
6 years, 9 months ago (2014-03-14 17:16:17 UTC) #25
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-14 17:21:43 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/197123003/190001
6 years, 9 months ago (2014-03-14 17:21:52 UTC) #27
commit-bot: I haz the power
Change committed as 13810
6 years, 9 months ago (2014-03-14 18:23:17 UTC) #28
robertphillips
The CQ bit was checked by robertphillips@google.com
6 years, 9 months ago (2014-03-16 19:30:34 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/197123003/230001
6 years, 9 months ago (2014-03-16 19:30:36 UTC) #30
commit-bot: I haz the power
6 years, 9 months ago (2014-03-16 19:46:41 UTC) #31
Message was sent while issue was closed.
Change committed as 13822

Powered by Google App Engine
This is Rietveld 408576698