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

Issue 535953002: Replace SkPictureReplacementPlayback with GrRecordReplaceDraw (Closed)

Created:
6 years, 3 months ago by robertphillips
Modified:
6 years, 3 months ago
Reviewers:
bsalomon, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Replace SkPictureReplacementPlayback with GrRecordReplaceDraw I think this is sufficiently specialized to keep it in Ganesh for the time being. Committed: https://skia.googlesource.com/skia/+/d982eb22d7bce655a609e9b481b3ddfeff361067

Patch Set 1 #

Patch Set 2 : Fix comments #

Patch Set 3 : Fix memory leak #

Total comments: 13

Patch Set 4 : Address code review issues #

Total comments: 2

Patch Set 5 : Fix leak in SkImage creation (in test) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -0 lines) Patch
M gyp/gpu.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkDrawPictureCallback.h View 1 chunk +2 lines, -0 lines 0 comments Download
A src/gpu/GrRecordReplaceDraw.h View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A src/gpu/GrRecordReplaceDraw.cpp View 1 2 3 1 chunk +119 lines, -0 lines 0 comments Download
A tests/RecordReplaceDrawTest.cpp View 1 2 3 4 1 chunk +125 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (2 generated)
robertphillips
6 years, 3 months ago (2014-09-03 15:08:47 UTC) #2
bsalomon
https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp File src/gpu/GrRecordReplaceDraw.cpp (right): https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp#newcode98 src/gpu/GrRecordReplaceDraw.cpp:98: for (; (uintptr_t)ops[i] < ri->fStop; ++i) while ((uintptr_t)ops[i] < ...
6 years, 3 months ago (2014-09-03 15:43:50 UTC) #3
mtklein
https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp File src/gpu/GrRecordReplaceDraw.cpp (right): https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp#newcode59 src/gpu/GrRecordReplaceDraw.cpp:59: SkRecords::DrawBitmapRectToRect dbmr2r(const_cast<SkPaint*>(ri->fPaint), Hrm. This isn't going to work. dbmr2r ...
6 years, 3 months ago (2014-09-03 15:46:12 UTC) #4
mtklein
https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp File src/gpu/GrRecordReplaceDraw.cpp (right): https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp#newcode64 src/gpu/GrRecordReplaceDraw.cpp:64: (*draw)(dbmr2r); Wait a sec, maybe that's still even too ...
6 years, 3 months ago (2014-09-03 15:49:14 UTC) #5
robertphillips
https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp File src/gpu/GrRecordReplaceDraw.cpp (right): https://codereview.chromium.org/535953002/diff/40001/src/gpu/GrRecordReplaceDraw.cpp#newcode64 src/gpu/GrRecordReplaceDraw.cpp:64: (*draw)(dbmr2r); On 2014/09/03 15:49:14, mtklein wrote: > Wait a ...
6 years, 3 months ago (2014-09-03 17:36:24 UTC) #6
bsalomon
lgtm
6 years, 3 months ago (2014-09-03 17:45:53 UTC) #7
mtklein
lgtm https://codereview.chromium.org/535953002/diff/60001/src/gpu/GrRecordReplaceDraw.cpp File src/gpu/GrRecordReplaceDraw.cpp (right): https://codereview.chromium.org/535953002/diff/60001/src/gpu/GrRecordReplaceDraw.cpp#newcode97 src/gpu/GrRecordReplaceDraw.cpp:97: SkASSERT((uintptr_t)ops[i] == ri->fStop); Replace the loop and assert ...
6 years, 3 months ago (2014-09-03 17:47:56 UTC) #8
robertphillips
https://codereview.chromium.org/535953002/diff/60001/src/gpu/GrRecordReplaceDraw.cpp File src/gpu/GrRecordReplaceDraw.cpp (right): https://codereview.chromium.org/535953002/diff/60001/src/gpu/GrRecordReplaceDraw.cpp#newcode97 src/gpu/GrRecordReplaceDraw.cpp:97: SkASSERT((uintptr_t)ops[i] == ri->fStop); ri->fStop is an index into the ...
6 years, 3 months ago (2014-09-03 17:56:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/535953002/80001
6 years, 3 months ago (2014-09-03 17:57:09 UTC) #11
mtklein
On 2014/09/03 17:56:52, robertphillips wrote: > https://codereview.chromium.org/535953002/diff/60001/src/gpu/GrRecordReplaceDraw.cpp > File src/gpu/GrRecordReplaceDraw.cpp (right): > > https://codereview.chromium.org/535953002/diff/60001/src/gpu/GrRecordReplaceDraw.cpp#newcode97 > ...
6 years, 3 months ago (2014-09-03 17:59:26 UTC) #12
commit-bot: I haz the power
6 years, 3 months ago (2014-09-03 18:04:38 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as d982eb22d7bce655a609e9b481b3ddfeff361067

Powered by Google App Engine
This is Rietveld 408576698