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

Unified Diff: cc/layers/picture_image_layer.cc

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: better unittest Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: cc/layers/picture_image_layer.cc
diff --git a/cc/layers/picture_image_layer.cc b/cc/layers/picture_image_layer.cc
index a65ac8c9318c498a22ca904a00edc1ab5a7994ee..622a8579d74db83459f17ffa7d59966fc6538a9f 100644
--- a/cc/layers/picture_image_layer.cc
+++ b/cc/layers/picture_image_layer.cc
@@ -43,6 +43,7 @@ void PictureImageLayer::SetBitmap(const SkBitmap& bitmap) {
void PictureImageLayer::PaintContents(
SkCanvas* canvas,
const gfx::Rect& clip,
+ bool can_paint_lcd_text,
gfx::RectF* opaque,
ContentLayerClient::GraphicsContextStatus gc_status) {
if (!bitmap_.width() || !bitmap_.height())
@@ -62,6 +63,10 @@ void PictureImageLayer::PaintContents(
canvas->drawBitmap(bitmap_, 0, 0, &paint);
}
+bool PictureImageLayer::PaintsLCDText() const {
+ return false;
+}
+
bool PictureImageLayer::FillsBoundsCompletely() const {
// PictureImageLayer will always paint to the entire layer bounds.
return true;

Powered by Google App Engine
This is Rietveld 408576698