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

Unified Diff: ui/compositor/layer.cc

Issue 315393002: Record SkPicture with correct LCD text setting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updated unittests 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: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index ca3ff288ee293a43b49d39bee0f6f97311e6a0cd..5594e0de0c7dc2f612c59bedab8a10057c8f235a 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -636,6 +636,7 @@ void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) {
void Layer::PaintContents(SkCanvas* sk_canvas,
const gfx::Rect& clip,
+ bool can_paint_lcd_text,
gfx::RectF* opaque,
ContentLayerClient::GraphicsContextStatus gc_status) {
TRACE_EVENT0("ui", "Layer::PaintContents");
@@ -645,6 +646,10 @@ void Layer::PaintContents(SkCanvas* sk_canvas,
delegate_->OnPaintLayer(canvas.get());
}
+bool Layer::PaintsLCDText() const {
+ return false;
+}
+
bool Layer::FillsBoundsCompletely() const { return fills_bounds_completely_; }
bool Layer::PrepareTextureMailbox(

Powered by Google App Engine
This is Rietveld 408576698