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

Issue 2007113008: Add prescale option to deferred params (Closed)

Created:
4 years, 6 months ago by ericrk
Modified:
4 years, 6 months ago
Reviewers:
bsalomon
CC:
reviews_skia.org, cblume
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Add prescale option to deferred params Currently, Skia always uploads GPU textures at full resolution. This change allows us to pass a pre-scale mip level to the deferred texture image logic, which causes us to pre-scale the image to the given mip level, and upload that mip level instead of the full image. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2007113008 Committed: https://skia.googlesource.com/skia/+/b4da01d8f719f3c43d492e8f62a7e2c861e9ef27

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebase #

Patch Set 3 : feedback #

Total comments: 1

Patch Set 4 : nit #

Patch Set 5 : Check for GrContext to prevent crashes when GM test runs on a SW canvas. #

Total comments: 1

Patch Set 6 : feedback and build fixes #

Patch Set 7 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -25 lines) Patch
A gm/deferredtextureimagedata.cpp View 1 2 3 4 5 1 chunk +81 lines, -0 lines 0 comments Download
M include/core/SkImage.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 4 5 4 chunks +44 lines, -7 lines 0 comments Download
M tests/ImageTest.cpp View 1 2 3 4 5 6 5 chunks +53 lines, -18 lines 0 comments Download

Messages

Total messages: 35 (19 generated)
ericrk
Here's my first take at a pre-scale API, let me know how this looks. Thanks!
4 years, 6 months ago (2016-05-25 17:32:38 UTC) #3
bsalomon
Maybe its time to add a GM test in addition to the unit test since ...
4 years, 6 months ago (2016-05-26 13:12:55 UTC) #4
ericrk
Added a GM test as well. Thanks! https://codereview.chromium.org/2007113008/diff/1/src/image/SkImage_Gpu.cpp File src/image/SkImage_Gpu.cpp (right): https://codereview.chromium.org/2007113008/diff/1/src/image/SkImage_Gpu.cpp#newcode362 src/image/SkImage_Gpu.cpp:362: const int ...
4 years, 6 months ago (2016-06-09 19:46:05 UTC) #8
bsalomon
lgtm https://codereview.chromium.org/2007113008/diff/100001/gm/deferredtextureimagedata.cpp File gm/deferredtextureimagedata.cpp (right): https://codereview.chromium.org/2007113008/diff/100001/gm/deferredtextureimagedata.cpp#newcode18 gm/deferredtextureimagedata.cpp:18: bool DrawDeferredTextureImageData(SkCanvas* canvas, SkImage* image, nit, should be ...
4 years, 6 months ago (2016-06-10 13:18:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007113008/120001
4 years, 6 months ago (2016-06-10 17:35:31 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/9037) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
4 years, 6 months ago (2016-06-10 17:42:02 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007113008/140001
4 years, 6 months ago (2016-06-10 20:11:52 UTC) #16
ericrk
Added a check so we don't try to use deferredtextureimagedata in a SW GM (only ...
4 years, 6 months ago (2016-06-10 20:12:15 UTC) #17
bsalomon
https://codereview.chromium.org/2007113008/diff/140001/gm/deferredtextureimagedata.cpp File gm/deferredtextureimagedata.cpp (right): https://codereview.chromium.org/2007113008/diff/140001/gm/deferredtextureimagedata.cpp#newcode41 gm/deferredtextureimagedata.cpp:41: return; Can you make this do GM::DrawGpuOnlyMessage(canvas) before returning?
4 years, 6 months ago (2016-06-10 20:17:49 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/9138)
4 years, 6 months ago (2016-06-10 20:19:05 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007113008/160001
4 years, 6 months ago (2016-06-10 20:42:50 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-ShuttleA-GPU-GTX660-x86_64-Release-Trybot/builds/4108)
4 years, 6 months ago (2016-06-10 20:50:22 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007113008/200001
4 years, 6 months ago (2016-06-10 21:19:38 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/9144)
4 years, 6 months ago (2016-06-10 21:29:49 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007113008/220001
4 years, 6 months ago (2016-06-13 18:00:09 UTC) #33
commit-bot: I haz the power
4 years, 6 months ago (2016-06-13 18:18:19 UTC) #35
Message was sent while issue was closed.
Committed patchset #7 (id:220001) as
https://skia.googlesource.com/skia/+/b4da01d8f719f3c43d492e8f62a7e2c861e9ef27

Powered by Google App Engine
This is Rietveld 408576698