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

Issue 848903004: Require budget decision when creating a RenderTarget SkSurface (Closed)

Created:
5 years, 11 months ago by bsalomon
Modified:
5 years, 11 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Require budget decision when creating a RenderTarget SkSurface. Restructure SkGpuDevice creation: *SkSurfaceProps are optional. *Use SkSurfaceProps to communicate DF text rather than a flag. *Tell SkGpuDevice::Create whether RT comes from cache or not. Committed: https://skia.googlesource.com/skia/+/afe3005be3392e43bc51eb7eb2017eefaed85ad1

Patch Set 1 #

Patch Set 2 : fixes and cleanup #

Patch Set 3 : Make compatible with chrome #

Total comments: 27

Patch Set 4 : Address initial comments #

Total comments: 2

Patch Set 5 : Address comments and fix no gpu build #

Patch Set 6 : rebase #

Patch Set 7 : fix warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -219 lines) Patch
M bench/nanobench.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M dm/DMGpuSupport.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M expectations/gm/ignored-tests.txt View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M gm/dftext.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M gm/discard.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/image.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M gm/surface.cpp View 1 chunk +1 line, -1 line 0 comments Download
M gm/xfermodes3.cpp View 1 2 3 1 chunk +7 lines, -12 lines 0 comments Download
M include/core/SkSurface.h View 1 2 2 chunks +28 lines, -19 lines 0 comments Download
M include/gpu/GrGpuResource.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrGpuResource.cpp View 1 2 chunks +7 lines, -1 line 0 comments Download
M src/gpu/GrGpuResourceCacheAccess.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M src/gpu/GrResourceCache2.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 6 chunks +15 lines, -24 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 8 chunks +58 lines, -40 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M src/image/SkSurface.cpp View 1 2 3 4 1 chunk +2 lines, -5 lines 0 comments Download
M src/image/SkSurface_Gpu.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 4 chunks +37 lines, -64 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 2 chunks +6 lines, -3 lines 0 comments Download
M tests/GpuDrawPathTest.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M tests/ImageFilterTest.cpp View 1 chunk +12 lines, -8 lines 0 comments Download
M tests/ImageIsOpaqueTest.cpp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M tests/ImageNewShaderTest.cpp View 1 2 3 4 3 chunks +8 lines, -4 lines 0 comments Download
M tests/PremulAlphaRoundTripTest.cpp View 1 chunk +4 lines, -5 lines 0 comments Download
M tests/ReadWriteAlphaTest.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M tests/ResourceCacheTest.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M tests/SurfaceTest.cpp View 1 2 3 4 3 chunks +6 lines, -11 lines 0 comments Download
M tools/PictureRenderer.cpp View 1 chunk +6 lines, -8 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
bsalomon
5 years, 11 months ago (2015-01-15 20:29:39 UTC) #2
robertphillips
half way through https://codereview.chromium.org/848903004/diff/40001/gm/xfermodes3.cpp File gm/xfermodes3.cpp (right): https://codereview.chromium.org/848903004/diff/40001/gm/xfermodes3.cpp#newcode128 gm/xfermodes3.cpp:128: SkImageInfo baseInfo = baseCanvas->imageInfo(); info -> ...
5 years, 11 months ago (2015-01-15 20:48:18 UTC) #3
jvanverth1
Taking a preliminary look -- dftext setup looks okay.
5 years, 11 months ago (2015-01-15 21:12:17 UTC) #4
bsalomon
https://codereview.chromium.org/848903004/diff/40001/gm/xfermodes3.cpp File gm/xfermodes3.cpp (right): https://codereview.chromium.org/848903004/diff/40001/gm/xfermodes3.cpp#newcode128 gm/xfermodes3.cpp:128: SkImageInfo baseInfo = baseCanvas->imageInfo(); On 2015/01/15 20:48:17, robertphillips wrote: ...
5 years, 11 months ago (2015-01-15 21:14:06 UTC) #5
robertphillips
other half https://codereview.chromium.org/848903004/diff/40001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/848903004/diff/40001/src/gpu/SkGpuDevice.cpp#newcode163 src/gpu/SkGpuDevice.cpp:163: Can't we do something like fSurfaceProps.isUseDistanceFieldFonts() ? ...
5 years, 11 months ago (2015-01-15 21:30:37 UTC) #6
robertphillips
https://codereview.chromium.org/848903004/diff/40001/include/core/SkSurface.h File include/core/SkSurface.h (right): https://codereview.chromium.org/848903004/diff/40001/include/core/SkSurface.h#newcode120 include/core/SkSurface.h:120: const SkSurfaceProps* props) { On 2015/01/15 21:14:05, bsalomon wrote: ...
5 years, 11 months ago (2015-01-15 21:34:09 UTC) #7
bsalomon
https://codereview.chromium.org/848903004/diff/40001/src/gpu/SkGpuDevice.cpp File src/gpu/SkGpuDevice.cpp (right): https://codereview.chromium.org/848903004/diff/40001/src/gpu/SkGpuDevice.cpp#newcode163 src/gpu/SkGpuDevice.cpp:163: On 2015/01/15 21:30:36, robertphillips wrote: > Can't we do ...
5 years, 11 months ago (2015-01-15 22:15:50 UTC) #8
robertphillips
lgtm
5 years, 11 months ago (2015-01-16 00:53:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848903004/100001
5 years, 11 months ago (2015-01-16 14:46:12 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot on client.skia.compile (http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu13.10-GCC4.8-x86_64-Release-Trybot/builds/1525)
5 years, 11 months ago (2015-01-16 14:49:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/848903004/120001
5 years, 11 months ago (2015-01-16 15:21:35 UTC) #15
commit-bot: I haz the power
5 years, 11 months ago (2015-01-16 15:32:37 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/afe3005be3392e43bc51eb7eb2017eefaed85ad1

Powered by Google App Engine
This is Rietveld 408576698