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

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: Review comments 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..3a49ab36aea5b461e4b60ff19da41eaa50b0f034 100644
--- a/ui/compositor/compositing_recorder.h
+++ b/ui/compositor/compositing_recorder.h
@@ -26,10 +26,15 @@ 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. |lcd_text_requires_opaque_layer| should
+ // normally be true; if this is false, Skia will respect text rendering
+ // requests for LCD AA even if they occur on non-opaque layers. This should
+ // only be used in cases where the text is known to be rendered opaquely on an
+ // opaque background before compositing.
CompositingRecorder(const PaintContext& context,
const gfx::Size& size_in_context,
- uint8_t alpha);
+ uint8_t alpha,
+ bool lcd_text_requires_opaque_layer);
~CompositingRecorder();
private:

Powered by Google App Engine
This is Rietveld 408576698