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

Issue 1228083004: add src-rect-constraint to drawImageRect (Closed)

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

Description

add src-rect-constraint to drawImageRect Follow-on work - unify around SrcRectConstraint (i.e. drawBitmapRect) - remove silly drawBitmapRectToRect alias - clean-up (possibly remove) alias problems around drawBitmapRect + IRect parameter BUG=skia: Committed: https://skia.googlesource.com/skia/+/a5517e2b190a8083b38964972b031c13e99f1012

Patch Set 1 #

Patch Set 2 : propogate Constraint into SkDevice #

Total comments: 6

Patch Set 3 : #

Total comments: 1

Patch Set 4 : stop using drawBitmapRectToRect in GMs #

Patch Set 5 : make device's virtual take a macro for its type #

Patch Set 6 : update canvas virtual as well #

Patch Set 7 : #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+391 lines, -258 lines) Patch
M gm/bigtileimagefilter.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gm/bitmaprect.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M gm/bitmaprecttest.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gm/bleed.cpp View 1 2 5 chunks +78 lines, -53 lines 0 comments Download
M gm/convexpolyclip.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M include/core/SkBitmapDevice.h View 1 2 3 4 1 chunk +2 lines, -4 lines 0 comments Download
M include/core/SkCanvas.h View 1 2 3 4 5 6 chunks +88 lines, -17 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M include/utils/SkDeferredCanvas.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M include/utils/SkDumpCanvas.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M include/utils/SkLuaCanvas.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M include/utils/SkNWayCanvas.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M include/utils/SkPaintFilterCanvas.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 7 chunks +20 lines, -10 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M src/core/SkMiniRecorder.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkMiniRecorder.cpp View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M src/core/SkPictureFlat.h View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M src/core/SkPicturePlayback.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -5 lines 0 comments Download
M src/core/SkPictureRecord.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkPictureRecord.cpp View 1 2 3 4 5 6 6 chunks +13 lines, -10 lines 0 comments Download
M src/core/SkRecordDraw.cpp View 1 2 3 4 5 6 2 chunks +11 lines, -11 lines 0 comments Download
M src/core/SkRecorder.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M src/core/SkRecorder.cpp View 1 2 3 4 5 3 chunks +13 lines, -10 lines 0 comments Download
M src/core/SkRecords.h View 1 2 3 4 5 2 chunks +19 lines, -18 lines 0 comments Download
M src/effects/SkBitmapSource.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/GrRecordReplaceDraw.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 14 chunks +18 lines, -15 lines 0 comments Download
M src/pdf/SkPDFDevice.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pipe/SkGPipePriv.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/pipe/SkGPipeRead.cpp View 1 2 3 4 5 2 chunks +6 lines, -5 lines 0 comments Download
M src/pipe/SkGPipeWrite.cpp View 1 2 3 4 5 5 chunks +12 lines, -6 lines 0 comments Download
M src/svg/SkSVGDevice.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/svg/SkSVGDevice.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 3 4 5 6 chunks +8 lines, -7 lines 0 comments Download
M src/utils/SkDumpCanvas.cpp View 1 2 3 4 5 3 chunks +3 lines, -4 lines 0 comments Download
M src/utils/SkLuaCanvas.cpp View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/utils/SkNWayCanvas.cpp View 1 2 3 4 5 3 chunks +5 lines, -6 lines 0 comments Download
M src/utils/SkPaintFilterCanvas.cpp View 1 2 3 4 5 2 chunks +7 lines, -4 lines 0 comments Download
M src/utils/android/SkAndroidSDKCanvas.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/utils/android/SkAndroidSDKCanvas.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download
M src/utils/debugger/SkDrawCommand.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M src/utils/debugger/SkDrawCommand.cpp View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M tests/RecordDrawTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (13 generated)
reed1
WIP -- I had having to stage changes to canvas virtuals
5 years, 5 months ago (2015-07-09 20:54:33 UTC) #1
reed1
still need to do more picture-serialize and piperead work
5 years, 5 months ago (2015-07-09 20:57:48 UTC) #3
f(malita)
https://codereview.chromium.org/1228083004/diff/20001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/1228083004/diff/20001/include/core/SkCanvas.h#newcode46 include/core/SkCanvas.h:46: #define SRC_RECT_CONSTRAINT_ARG(arg) , arg For some reason I recall ...
5 years, 5 months ago (2015-07-09 21:28:36 UTC) #4
reed1
https://codereview.chromium.org/1228083004/diff/20001/include/core/SkCanvas.h File include/core/SkCanvas.h (right): https://codereview.chromium.org/1228083004/diff/20001/include/core/SkCanvas.h#newcode834 include/core/SkCanvas.h:834: SrcRectConstraint constraint = kStrict_SrcRectConstraint); On 2015/07/09 21:28:36, f(malita) wrote: ...
5 years, 5 months ago (2015-07-10 15:07:50 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228083004/40001
5 years, 5 months ago (2015-07-10 15:09:10 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228083004/60001
5 years, 5 months ago (2015-07-10 15:43:46 UTC) #10
robertphillips
lgtm https://codereview.chromium.org/1228083004/diff/40001/include/core/SkBitmapDevice.h File include/core/SkBitmapDevice.h (right): https://codereview.chromium.org/1228083004/diff/40001/include/core/SkBitmapDevice.h#newcode83 include/core/SkBitmapDevice.h:83: */ Does this need any staging for Chrome ...
5 years, 5 months ago (2015-07-10 15:44:34 UTC) #11
reed1
On 2015/07/10 15:44:34, robertphillips wrote: > lgtm > > https://codereview.chromium.org/1228083004/diff/40001/include/core/SkBitmapDevice.h > File include/core/SkBitmapDevice.h (right): > ...
5 years, 5 months ago (2015-07-10 15:47:24 UTC) #12
f(malita)
On 2015/07/10 15:47:24, reed1 wrote: > On 2015/07/10 15:44:34, robertphillips wrote: > > lgtm > ...
5 years, 5 months ago (2015-07-10 16:46:32 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228083004/100001
5 years, 5 months ago (2015-07-10 18:03:07 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228083004/110001
5 years, 5 months ago (2015-07-10 18:28:43 UTC) #21
reed1
Will wait until Monday/Tuesday (after the Chrome branch) to try to land this.
5 years, 5 months ago (2015-07-10 20:27:34 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228083004/130001
5 years, 5 months ago (2015-07-14 14:18:07 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:130001) as https://skia.googlesource.com/skia/+/a5517e2b190a8083b38964972b031c13e99f1012
5 years, 5 months ago (2015-07-14 17:54:17 UTC) #27
scroggo
5 years, 5 months ago (2015-07-14 20:59:42 UTC) #28
Message was sent while issue was closed.
On 2015/07/14 17:54:17, commit-bot: I haz the power wrote:
> Committed patchset #8 (id:130001) as
> https://skia.googlesource.com/skia/+/a5517e2b190a8083b38964972b031c13e99f1012

FYI: This broke the Android build. You forgot to add the define when building
for Android.

I have added it here: https://codereview.chromium.org/1237903002/

Powered by Google App Engine
This is Rietveld 408576698