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

Issue 772533004: Change clear() to respect the clip (Closed)

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

Description

Change clear() to respect the clip patch from issue 769703002 at patchset 1 (http://crrev.com/769703002#ps1) BUG=skia: Committed: https://skia.googlesource.com/skia/+/3729469d6a12266037b697c2192768545e097ab0

Patch Set 1 #

Patch Set 2 : change clear() back to virtual for now, to try to ease the chrome transition #

Patch Set 3 : rebase #

Total comments: 7

Patch Set 4 : add dox #

Total comments: 1

Patch Set 5 : remove #if 0 code #

Patch Set 6 : remove (obsolete) SkDevice::clear #

Patch Set 7 : fix SkRecordPartialDraw #

Total comments: 2

Patch Set 8 : update dox #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -198 lines) Patch
M include/core/SkBitmapDevice.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M include/core/SkCanvas.h View 1 1 chunk +5 lines, -17 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M include/core/SkPicture.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/pdf/SkPDFDevice.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 chunk +0 lines, -1 line 0 comments Download
M include/utils/SkNWayCanvas.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 chunk +0 lines, -8 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkPictureRecord.cpp View 1 chunk +0 lines, -8 lines 0 comments Download
M src/core/SkRecordDraw.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -27 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkRecorder.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/core/SkRecorder.cpp View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M src/core/SkRecords.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 1 2 3 4 5 6 5 chunks +3 lines, -10 lines 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 5 4 chunks +10 lines, -9 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 5 1 chunk +0 lines, -14 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 2 chunks +0 lines, -15 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 5 2 chunks +0 lines, -12 lines 0 comments Download
M src/utils/SkGatherPixelRefsAndRects.h View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M src/utils/SkPictureUtils.cpp View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M tests/DeferredCanvasTest.cpp View 1 2 3 4 1 chunk +0 lines, -8 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 2 3 4 5 6 2 chunks +1 line, -25 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
reed1
prev patch abandoned
6 years ago (2014-12-01 19:06:28 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772533004/40001
6 years ago (2014-12-02 13:41:05 UTC) #4
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years ago (2014-12-02 13:41:06 UTC) #5
reed1
ptal -- the try-canaries are busted, so I'd like to land this this morning, and ...
6 years ago (2014-12-02 15:19:35 UTC) #6
mtklein
lgtm. Just want to leave a few notes to remind us how and when to ...
6 years ago (2014-12-02 15:27:37 UTC) #8
reed1
https://codereview.chromium.org/772533004/diff/40001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/772533004/diff/40001/include/core/SkCanvas.h#newcode625 include/core/SkCanvas.h:625: virtual void clear(SkColor color) { On 2014/12/02 15:27:37, mtklein ...
6 years ago (2014-12-02 16:21:15 UTC) #9
mtklein
https://codereview.chromium.org/772533004/diff/40001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/772533004/diff/40001/include/core/SkCanvas.h#newcode625 include/core/SkCanvas.h:625: virtual void clear(SkColor color) { On 2014/12/02 16:21:15, reed1 ...
6 years ago (2014-12-02 16:29:28 UTC) #10
reed1
On 2014/12/02 16:29:28, mtklein wrote: > https://codereview.chromium.org/772533004/diff/40001/include/core/SkCanvas.h > File include/core/SkCanvas.h (right): > > https://codereview.chromium.org/772533004/diff/40001/include/core/SkCanvas.h#newcode625 > ...
6 years ago (2014-12-02 16:39:10 UTC) #11
reed1
ptal
6 years ago (2014-12-02 17:37:16 UTC) #12
mtklein
This LGTM, but I'd want Robert's nod too.
6 years ago (2014-12-02 17:43:11 UTC) #13
reed1
6 years ago (2014-12-02 17:44:08 UTC) #15
robertphillips
lgtm + dox change https://codereview.chromium.org/772533004/diff/120001/src/core/SkRecordDraw.h File src/core/SkRecordDraw.h (right): https://codereview.chromium.org/772533004/diff/120001/src/core/SkRecordDraw.h#newcode31 src/core/SkRecordDraw.h:31: Remove the "while replacing clears ...
6 years ago (2014-12-02 17:52:10 UTC) #16
reed1
https://codereview.chromium.org/772533004/diff/120001/src/core/SkRecordDraw.h File src/core/SkRecordDraw.h (right): https://codereview.chromium.org/772533004/diff/120001/src/core/SkRecordDraw.h#newcode31 src/core/SkRecordDraw.h:31: On 2014/12/02 17:52:09, robertphillips wrote: > Remove the "while ...
6 years ago (2014-12-02 17:56:22 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/772533004/140001
6 years ago (2014-12-02 17:57:29 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://skia.googlesource.com/skia/+/3729469d6a12266037b697c2192768545e097ab0
6 years ago (2014-12-02 18:08:15 UTC) #20
reed2
6 years ago (2014-12-03 03:12:29 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/747313004/ by reed@chromium.org.

The reason for reverting is: failing win unittests.

Powered by Google App Engine
This is Rietveld 408576698