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

Issue 481543002: Small tweaks and a bug fix. (Closed)

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

Description

Small tweaks and a bug fix. Bug fixed: I was calling paint->canComputeFastBounds() where I should have been calling fSaveStack[i].paint->canComputeFastBounds(). This suggested I factor out the paint adjusting code, now called AdjustForPaint(). This removes the getImageFilter() check for SaveLayers, which seems like an optimization we can add back later if it proves important. We're going to want to intersect the bounds with the current clip bounds eventually, so might as well land that here too. Plus, more const. BUG=skia: Committed: https://skia.googlesource.com/skia/+/479601b9a74b5b8e424ed3d68882e161617bdceb

Patch Set 1 #

Patch Set 2 : what -> why #

Patch Set 3 : const #

Total comments: 4

Patch Set 4 : comments + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -18 lines) Patch
M src/core/SkRecordDraw.cpp View 1 2 3 2 chunks +29 lines, -18 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
mtklein
Little things I stumbled over while bounding ops.
6 years, 4 months ago (2014-08-15 20:23:45 UTC) #1
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 4 months ago (2014-08-15 20:30:50 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/481543002/40001
6 years, 4 months ago (2014-08-15 20:31:13 UTC) #3
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 4 months ago (2014-08-15 20:31:14 UTC) #4
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-16 02:31:13 UTC) #5
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
6 years, 4 months ago (2014-08-16 02:31:14 UTC) #6
robertphillips
lgtm + 2 docs requests https://codereview.chromium.org/481543002/diff/40001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/481543002/diff/40001/src/core/SkRecordDraw.cpp#newcode271 src/core/SkRecordDraw.cpp:271: if (!AdjustForPaint(paint, &rect)) { ...
6 years, 4 months ago (2014-08-18 13:37:55 UTC) #7
mtklein
https://codereview.chromium.org/481543002/diff/40001/src/core/SkRecordDraw.cpp File src/core/SkRecordDraw.cpp (right): https://codereview.chromium.org/481543002/diff/40001/src/core/SkRecordDraw.cpp#newcode271 src/core/SkRecordDraw.cpp:271: if (!AdjustForPaint(paint, &rect)) { On 2014/08/18 13:37:55, robertphillips wrote: ...
6 years, 4 months ago (2014-08-18 15:35:06 UTC) #8
mtklein
The CQ bit was checked by mtklein@google.com
6 years, 4 months ago (2014-08-18 15:35:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/481543002/60001
6 years, 4 months ago (2014-08-18 15:35:58 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-18 15:45:41 UTC) #11
Message was sent while issue was closed.
Committed patchset #4 (60001) as 479601b9a74b5b8e424ed3d68882e161617bdceb

Powered by Google App Engine
This is Rietveld 408576698