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

Issue 2355483002: abstract name of clipping ops, to transtion to a more restricted set (Closed)

Created:
4 years, 3 months ago by reed1
Modified:
4 years, 3 months ago
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

abstract name of clipping ops, to transtion to a more restricted set SkRegion::Op --> SkCanvas::ClipOp (alias) --> SkClipOp pre-CL needed in chrome : https://codereview.chromium.org/2355583002/ BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2355483002 Committed: https://skia.googlesource.com/skia/+/73603f3c52ffd89fe9d035be827b566a0e7d3b79

Patch Set 1 #

Total comments: 7

Patch Set 2 : lots of typing #

Patch Set 3 : catch the rest #

Patch Set 4 : linker wants real globals #

Patch Set 5 : add guards for android and google3 #

Patch Set 6 : remove setClipRegion entirely #

Total comments: 8

Patch Set 7 : add static_asserts #

Patch Set 8 : rebase #

Patch Set 9 : no need for ifdef for globals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+708 lines, -669 lines) Patch
M bench/AAClipBench.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M gm/aaclip.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/bigblurs.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/blurredclippedcircle.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M gm/circularclips.cpp View 1 2 3 chunks +10 lines, -10 lines 0 comments Download
M gm/clip_strokerect.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M gm/complexclip.cpp View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M gm/complexclip2.cpp View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M gm/complexclip3.cpp View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M gm/complexclip_blur_tiled.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/convexpolyclip.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M gm/distantclip.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/imagefilters.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/megalooper.cpp View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M gm/path_stroke_with_zero_length.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M gm/pathopsinverse.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M gm/pathopsskpclip.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M gm/rrectclipdrawpaint.cpp View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M gm/rrects.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/samplerstress.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/simpleaaclip.cpp View 1 2 5 chunks +13 lines, -13 lines 0 comments Download
M gm/skbug1719.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gm/windowrectangles.cpp View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M gyp/skia_for_android_framework_defines.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 9 chunks +34 lines, -28 lines 0 comments Download
A include/core/SkClipOp.h View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M include/core/SkClipStack.h View 1 10 chunks +23 lines, -22 lines 0 comments Download
M include/core/SkPictureAnalyzer.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M include/gpu/GrPaint.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M include/private/SkRecords.h View 1 1 chunk +10 lines, -10 lines 0 comments Download
M include/utils/SkDumpCanvas.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M include/utils/SkLuaCanvas.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M include/utils/SkNWayCanvas.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M public.bzl View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M samplecode/SampleApp.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleClip.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleClipDrawMatch.cpp View 1 2 1 chunk +13 lines, -13 lines 0 comments Download
M samplecode/SampleComplexClip.cpp View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M samplecode/SampleFatBits.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleIdentityScale.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M samplecode/SampleLayers.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 8 15 chunks +35 lines, -22 lines 0 comments Download
M src/core/SkClipStack.cpp View 1 2 19 chunks +41 lines, -41 lines 0 comments Download
M src/core/SkLiteDL.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/core/SkLiteDL.cpp View 1 2 chunks +19 lines, -19 lines 0 comments Download
M src/core/SkLiteRecorder.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/core/SkLiteRecorder.cpp View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/core/SkPictureAnalyzer.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 4 chunks +8 lines, -8 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 3 chunks +9 lines, -9 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 7 chunks +17 lines, -17 lines 0 comments Download
M src/core/SkRecorder.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 1 chunk +7 lines, -7 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrClipStackClip.cpp View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
M src/gpu/GrReducedClip.cpp View 1 2 17 chunks +32 lines, -32 lines 0 comments Download
M src/pdf/SkPDFCanvas.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/pdf/SkPDFCanvas.cpp View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M src/pipe/SkPipeCanvas.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/pipe/SkPipeCanvas.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/pipe/SkPipeReader.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/svg/SkSVGDevice.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/utils/SkCanvasStack.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/utils/SkCanvasStack.cpp View 1 2 chunks +5 lines, -5 lines 0 comments Download
M src/utils/SkCanvasStateUtils.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M src/utils/SkDeferredCanvas.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 3 chunks +6 lines, -6 lines 0 comments Download
M src/utils/SkDumpCanvas.cpp View 1 5 chunks +5 lines, -5 lines 0 comments Download
M src/utils/SkLua.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/utils/SkLuaCanvas.cpp View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M tests/CanvasStateTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/CanvasTest.cpp View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M tests/ClipBoundsTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/ClipStackTest.cpp View 1 2 55 chunks +117 lines, -117 lines 0 comments Download
M tests/DrawPathTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/GrShapeTest.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tests/PictureBBHTest.cpp View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M tests/PictureTest.cpp View 1 2 12 chunks +22 lines, -28 lines 0 comments Download
M tests/ReadPixelsTest.cpp View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M tests/SkLiteDLTest.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tests/WritePixelsTest.cpp View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M tools/debugger/SkDebugCanvas.h View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M tools/debugger/SkDebugCanvas.cpp View 1 2 8 chunks +15 lines, -15 lines 0 comments Download
M tools/debugger/SkDrawCommand.h View 1 2 1 chunk +17 lines, -17 lines 0 comments Download
M tools/debugger/SkDrawCommand.cpp View 1 2 7 chunks +26 lines, -26 lines 0 comments Download
M tools/debugger/SkObjectParser.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/debugger/SkObjectParser.cpp View 1 2 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 39 (27 generated)
reed1
a more conservative first step...
4 years, 3 months ago (2016-09-19 15:28:13 UTC) #3
f(malita)
https://codereview.chromium.org/2355483002/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2355483002/diff/1/include/core/SkCanvas.h#newcode69 include/core/SkCanvas.h:69: typedef SkRegion::Op ClipOp; Any reason to use typedef + ...
4 years, 3 months ago (2016-09-19 15:39:26 UTC) #4
bsalomon
Is there supposed to be a SkClipOp.h in the patchset?
4 years, 3 months ago (2016-09-19 16:07:20 UTC) #5
reed1
https://codereview.chromium.org/2355483002/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2355483002/diff/1/include/core/SkCanvas.h#newcode69 include/core/SkCanvas.h:69: typedef SkRegion::Op ClipOp; On 2016/09/19 15:39:25, f(malita) wrote: > ...
4 years, 3 months ago (2016-09-19 18:17:08 UTC) #6
f(malita)
https://codereview.chromium.org/2355483002/diff/1/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/2355483002/diff/1/include/core/SkCanvas.h#newcode69 include/core/SkCanvas.h:69: typedef SkRegion::Op ClipOp; On 2016/09/19 18:17:08, reed1 wrote: > ...
4 years, 3 months ago (2016-09-19 19:43:25 UTC) #15
reed1
https://codereview.chromium.org/2355483002/diff/100001/src/core/SkCanvas.cpp File src/core/SkCanvas.cpp (right): https://codereview.chromium.org/2355483002/diff/100001/src/core/SkCanvas.cpp#newcode1553 src/core/SkCanvas.cpp:1553: if (SkRegion::kIntersect_Op == op && !doAA && fMCRec->fMatrix.isScaleTranslate()) { ...
4 years, 3 months ago (2016-09-19 20:42:50 UTC) #16
reed1
ptal
4 years, 3 months ago (2016-09-19 21:36:06 UTC) #21
f(malita)
lgtm
4 years, 3 months ago (2016-09-20 12:56:11 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2355483002/160001
4 years, 3 months ago (2016-09-20 13:37:44 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: Build-Ubuntu-Clang-arm64-Debug-GN_Android_FrameworkDefs-Trybot on master.client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Ubuntu-Clang-arm64-Debug-GN_Android_FrameworkDefs-Trybot/builds/6)
4 years, 3 months ago (2016-09-20 13:43:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2355483002/160001
4 years, 3 months ago (2016-09-20 15:36:26 UTC) #37
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 15:42:42 UTC) #39
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/73603f3c52ffd89fe9d035be827b566a0e7d3b79

Powered by Google App Engine
This is Rietveld 408576698