aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/SkPictureUtils.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-11-13 12:41:02 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-13 12:41:02 -0800
commitb2db898573e3cdcc8234eebf51961bfc4977ebbc (patch)
tree49abafe126ff93559dba232f9294960514a9c7bb /src/utils/SkPictureUtils.cpp
parent66b4ce937330d2813609c9d92e0f6ff1184dcea4 (diff)
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? Review URL: https://codereview.chromium.org/719253002
Diffstat (limited to 'src/utils/SkPictureUtils.cpp')
-rw-r--r--src/utils/SkPictureUtils.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/utils/SkPictureUtils.cpp b/src/utils/SkPictureUtils.cpp
index 3127497ff0..dfa772a2da 100644
--- a/src/utils/SkPictureUtils.cpp
+++ b/src/utils/SkPictureUtils.cpp
@@ -62,9 +62,6 @@ public:
return SkImageInfo::MakeUnknown(fSize.width(), fSize.height());
}
virtual GrRenderTarget* accessRenderTarget() SK_OVERRIDE { return NULL; }
- virtual bool filterTextFlags(const SkPaint& paint, TextFlags*) SK_OVERRIDE {
- return false;
- }
// TODO: allow this call to return failure, or move to SkBitmapDevice only.
virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE {
return fEmptyBitmap;