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

Unified Diff: ui/compositor/compositing_recorder.h

Issue 1506203008: Allow background tab titles to use LCD AA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use new Skia API name Created 5 years 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/compositing_recorder.h
diff --git a/ui/compositor/compositing_recorder.h b/ui/compositor/compositing_recorder.h
index e50f6927575975815cf087eec6abefce8d805f7d..83528cb76dfd6700223a87bb2e74e5e3137cfc1b 100644
--- a/ui/compositor/compositing_recorder.h
+++ b/ui/compositor/compositing_recorder.h
@@ -26,10 +26,13 @@ class COMPOSITOR_EXPORT CompositingRecorder {
public:
// |alpha| is a value between 0 and 255, where 0 is transparent and 255 is
// opaque. |size_in_context| is the size in the |context|'s space surrounding
- // everything that's visible.
+ // everything that's visible. |allow_lcd_text| can be set to true to allow
+ // the underlying Skia layer to use LCD AA for text rendering, if you know the
+ // text is being drawn opaquely on an opaque background before compositing.
CompositingRecorder(const PaintContext& context,
const gfx::Size& size_in_context,
- uint8_t alpha);
+ uint8_t alpha,
+ bool allow_lcd_text);
danakj 2015/12/11 19:07:00 same comment about the name here
~CompositingRecorder();
private:

Powered by Google App Engine
This is Rietveld 408576698