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

Issue 719253002: rename filterTextFlags to disableLCD (Closed)

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

Description

rename filterTextFlags to disableLCD Under the hood, add SkPixelGeometry to the CreateInfo for new devices, allowing them to see their geometry (SkDeviceProperties) up front, rather than having it changed later. The only exception is for devices that are used on the root-layer, where we don't see the device until after the fact (at least as long as we allow clients to attach a device to a canvas externally). We also filter the geometry when we're creating a layer, so we can disable LCD text automatically if the layer is not marked as opaque. NOTRY=True -- gammatext flake? Committed: https://skia.googlesource.com/skia/+/b2db898573e3cdcc8234eebf51961bfc4977ebbc

Patch Set 1 #

Total comments: 5

Patch Set 2 : rebase #

Patch Set 3 : add param to CreateInfo #

Patch Set 4 : rename disableLCD to shouldDisableLCD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -102 lines) Patch
M include/core/SkBitmapDevice.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/core/SkCanvas.h View 1 chunk +0 lines, -2 lines 0 comments Download
M include/core/SkDevice.h View 1 2 3 5 chunks +19 lines, -19 lines 0 comments Download
M src/core/SkBitmapDevice.cpp View 1 2 3 5 chunks +8 lines, -16 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 7 chunks +17 lines, -22 lines 0 comments Download
M src/core/SkDevice.cpp View 1 2 3 3 chunks +50 lines, -14 lines 0 comments Download
M src/core/SkDeviceImageFilterProxy.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M src/gpu/SkGpuDevice.cpp View 1 2 3 4 chunks +11 lines, -16 lines 0 comments Download
M src/image/SkSurface_Gpu.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/utils/SkDeferredCanvas.cpp View 1 2 chunks +1 line, -5 lines 0 comments Download
M src/utils/SkPictureUtils.cpp View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
reed1
6 years, 1 month ago (2014-11-12 20:32:39 UTC) #2
f(malita)
Mostly nits. https://codereview.chromium.org/719253002/diff/1/include/core/SkBitmapDevice.h File include/core/SkBitmapDevice.h (right): https://codereview.chromium.org/719253002/diff/1/include/core/SkBitmapDevice.h#newcode41 include/core/SkBitmapDevice.h:41: bool onDisableLCD(const SkPaint&) const SK_OVERRIDE; virtual https://codereview.chromium.org/719253002/diff/1/include/core/SkDevice.h ...
6 years, 1 month ago (2014-11-12 20:49:14 UTC) #4
bsalomon
I defer to Jim
6 years, 1 month ago (2014-11-13 14:37:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/719253002/40001
6 years, 1 month ago (2014-11-13 20:03:58 UTC) #8
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
6 years, 1 month ago (2014-11-13 20:03:58 UTC) #9
f(malita)
LGTM w/ name change.
6 years, 1 month ago (2014-11-13 20:17:38 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/719253002/60001
6 years, 1 month ago (2014-11-13 20:20:28 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/719253002/60001
6 years, 1 month ago (2014-11-13 20:38:44 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/b2db898573e3cdcc8234eebf51961bfc4977ebbc
6 years, 1 month ago (2014-11-13 20:41:09 UTC) #17
brucedawson
6 years ago (2014-12-10 01:37:05 UTC) #18
Message was sent while issue was closed.
Just thought I'd point out a perf-win from this change that I didn't see
mentioned in the description. Prior to this change
createCompatibleDeviceForSaveLayer was getting called frequently when typing
into gmail and the large allocations this triggered were causing a noticeable
amount of overhead. I went to investigate and found that the allocations were
already gone in canary, presumably due to this change.

So, thanks!

Powered by Google App Engine
This is Rietveld 408576698