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

Issue 1971343002: Convert GrClip to an abstract base class (Closed)

Created:
4 years, 7 months ago by Chris Dalton
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@upload2_clipout
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Convert GrClip to an abstract base class Converts GrClip to an abstract base class and adds a "GrFixedClip" implementation. GrFixedClip denotes a clip implemented with fixed- function hardware. GrFixedClip allows us to remove the stateful "fClipMode" member from GrClipMaskManager, and in the future will be able to nicely encapsulate window rectangles. After this change GrClipMaskManager is just a wrapper around GrDrawTarget. We may want to consider removing it altogether. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1971343002 Committed: https://skia.googlesource.com/skia/+/846c051a4800b3cea341a0195db24297d6d9047f

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : remove iswideopen #

Total comments: 7

Patch Set 4 : comments, rebase #

Patch Set 5 : undo binds to temporaries #

Patch Set 6 : rebase #

Patch Set 7 : compiler warnings #

Patch Set 8 : fix crash #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -343 lines) Patch
M gm/texdata.cpp View 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/GrClip.h View 1 2 3 4 5 6 1 chunk +90 lines, -150 lines 0 comments Download
M include/gpu/GrTypesPriv.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M src/effects/SkAlphaThresholdFilter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkBlurMaskFilter.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkGpuBlurUtils.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkLightingImageFilter.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrBlurUtils.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrClip.cpp View 1 2 3 4 5 6 7 1 chunk +73 lines, -37 lines 0 comments Download
M src/gpu/GrClipMaskManager.h View 6 chunks +4 lines, -40 lines 0 comments Download
M src/gpu/GrClipMaskManager.cpp View 1 2 3 4 5 10 chunks +32 lines, -62 lines 0 comments Download
M src/gpu/GrContext.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 3 chunks +3 lines, -9 lines 0 comments Download
M src/gpu/GrDrawContextPriv.h View 3 chunks +3 lines, -2 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M src/gpu/GrTextureParamsAdjuster.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrTextureToYUVPlanes.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/GrYUVProvider.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.h View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/effects/GrConfigConversionEffect.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M src/image/SkImage_Gpu.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M tests/ClipBoundsTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M tests/TessellatingPathRendererTests.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tools/gpu/GrTest.cpp View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 31 (16 generated)
Chris Dalton
4 years, 7 months ago (2016-05-12 20:59:11 UTC) #3
bsalomon
https://codereview.chromium.org/1971343002/diff/40001/include/gpu/GrClip.h File include/gpu/GrClip.h (right): https://codereview.chromium.org/1971343002/diff/40001/include/gpu/GrClip.h#newcode58 include/gpu/GrClip.h:58: class GrWideOpenClip final : public GrClip { I've never ...
4 years, 7 months ago (2016-05-13 02:34:12 UTC) #4
Chris Dalton
Addressed the comments so far. No rush, window rectangles aren't going to be finished by ...
4 years, 7 months ago (2016-05-13 03:53:46 UTC) #5
bsalomon
lgtm https://codereview.chromium.org/1971343002/diff/40001/src/core/SkImageFilter.cpp File src/core/SkImageFilter.cpp (right): https://codereview.chromium.org/1971343002/diff/40001/src/core/SkImageFilter.cpp#newcode290 src/core/SkImageFilter.cpp:290: const SkIRect& dstIRect = SkIRect::MakeWH(bounds.width(), bounds.height()); On 2016/05/13 ...
4 years, 7 months ago (2016-05-13 13:44:56 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971343002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971343002/80001
4 years, 7 months ago (2016-05-13 14:25:38 UTC) #9
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/8536) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
4 years, 7 months ago (2016-05-13 14:27:10 UTC) #11
Chris Dalton
After the rebase we don't need "resetNonAA" anymore -- very nice!
4 years, 7 months ago (2016-05-13 15:28:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971343002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971343002/100001
4 years, 7 months ago (2016-05-13 15:28:44 UTC) #15
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/8539) Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, ...
4 years, 7 months ago (2016-05-13 15:31:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971343002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971343002/120001
4 years, 7 months ago (2016-05-13 15:47:30 UTC) #20
commit-bot: I haz the power
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/3594)
4 years, 7 months ago (2016-05-13 15:59:41 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971343002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971343002/140001
4 years, 7 months ago (2016-05-13 16:57:51 UTC) #25
commit-bot: I haz the power
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/8613)
4 years, 7 months ago (2016-05-13 17:01:03 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971343002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971343002/140001
4 years, 7 months ago (2016-05-13 17:20:43 UTC) #29
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 17:25:04 UTC) #31
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://skia.googlesource.com/skia/+/846c051a4800b3cea341a0195db24297d6d9047f

Powered by Google App Engine
This is Rietveld 408576698