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

Issue 607993002: Change GrContext::copyTexture to go through GrDrawTarget (Closed)

Created:
6 years, 2 months ago by Justin Novosad
Modified:
6 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Change GrContext::copyTexture to go through GrDrawTarget BUG=crbug.com/415100 Committed: https://skia.googlesource.com/skia/+/96c118edff293af93db0a2b1b6775428117924b1

Patch Set 1 #

Total comments: 3

Patch Set 2 : response to feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -25 lines) Patch
M src/gpu/GrContext.cpp View 1 2 chunks +8 lines, -14 lines 1 comment Download
M src/gpu/SkGrPixelRef.cpp View 1 3 chunks +6 lines, -11 lines 1 comment Download

Messages

Total messages: 22 (5 generated)
Justin Novosad
PTAL
6 years, 2 months ago (2014-09-26 18:45:43 UTC) #2
Justin Novosad
https://codereview.chromium.org/607993002/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (left): https://codereview.chromium.org/607993002/diff/1/src/gpu/GrContext.cpp#oldcode1581 src/gpu/GrContext.cpp:1581: this->flush(); Pretty sure this is no longer necessary now ...
6 years, 2 months ago (2014-09-26 18:48:23 UTC) #3
Justin Novosad
6 years, 2 months ago (2014-09-26 18:49:08 UTC) #5
bsalomon
On 2014/09/26 18:45:43, junov wrote: > PTAL This might obviate the CL I have here: ...
6 years, 2 months ago (2014-09-26 18:50:14 UTC) #6
bsalomon
https://codereview.chromium.org/607993002/diff/1/src/gpu/GrContext.cpp File src/gpu/GrContext.cpp (left): https://codereview.chromium.org/607993002/diff/1/src/gpu/GrContext.cpp#oldcode1581 src/gpu/GrContext.cpp:1581: this->flush(); On 2014/09/26 18:48:23, junov wrote: > Pretty sure ...
6 years, 2 months ago (2014-09-26 18:50:37 UTC) #7
bsalomon
Could you change the name to copySurface and change the params to GrSurface*? Chromium code ...
6 years, 2 months ago (2014-09-26 18:53:25 UTC) #8
Justin Novosad
New Patch
6 years, 2 months ago (2014-09-26 19:10:29 UTC) #9
bsalomon
lgtm Might want to run through layout tests before committing to avoid any surprises.
6 years, 2 months ago (2014-09-26 19:12:05 UTC) #10
Justin Novosad
On 2014/09/26 19:12:05, bsalomon wrote: > lgtm > > Might want to run through layout ...
6 years, 2 months ago (2014-09-26 19:17:36 UTC) #11
Justin Novosad
On 2014/09/26 19:17:36, junov wrote: > On 2014/09/26 19:12:05, bsalomon wrote: > > lgtm > ...
6 years, 2 months ago (2014-09-26 19:33:06 UTC) #12
Justin Novosad
On 2014/09/26 19:33:06, junov wrote: > On 2014/09/26 19:17:36, junov wrote: > > On 2014/09/26 ...
6 years, 2 months ago (2014-09-26 19:43:42 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/607993002/20001
6 years, 2 months ago (2014-09-26 19:44:00 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on tryserver.skia (http://108.170.220.120:10117/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/891)
6 years, 2 months ago (2014-09-26 19:59:22 UTC) #17
bsalomon
On 2014/09/26 19:59:22, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 2 months ago (2014-09-26 20:00:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/607993002/20001
6 years, 2 months ago (2014-09-26 20:01:03 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 96c118edff293af93db0a2b1b6775428117924b1
6 years, 2 months ago (2014-09-26 20:09:52 UTC) #21
robertphillips
6 years, 2 months ago (2014-09-29 12:14:23 UTC) #22
Message was sent while issue was closed.
Ex post facto nits.

https://codereview.chromium.org/607993002/diff/20001/src/gpu/GrContext.cpp
File src/gpu/GrContext.cpp (right):

https://codereview.chromium.org/607993002/diff/20001/src/gpu/GrContext.cpp#ne...
src/gpu/GrContext.cpp:1577: ASSERT_OWNED_RESOURCE(src);
ASSERT_OWNED_RESOURCE(dst); ?

https://codereview.chromium.org/607993002/diff/20001/src/gpu/SkGrPixelRef.cpp
File src/gpu/SkGrPixelRef.cpp (right):

https://codereview.chromium.org/607993002/diff/20001/src/gpu/SkGrPixelRef.cpp...
src/gpu/SkGrPixelRef.cpp:56: static SkGrPixelRef*
copy_to_new_texture_pixelref(GrTexture* texture, SkColorType dstCT,
line this up?

Powered by Google App Engine
This is Rietveld 408576698