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

Unified Diff: ui/compositor/compositing_recorder.cc

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
« no previous file with comments | « ui/compositor/compositing_recorder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositing_recorder.cc
diff --git a/ui/compositor/compositing_recorder.cc b/ui/compositor/compositing_recorder.cc
index e103890968d072b979768df03863ac665d902714..842cc3a2ec330f953571e0874d11be3a5d5b43ff 100644
--- a/ui/compositor/compositing_recorder.cc
+++ b/ui/compositor/compositing_recorder.cc
@@ -13,7 +13,8 @@ namespace ui {
CompositingRecorder::CompositingRecorder(const PaintContext& context,
const gfx::Size& size_in_context,
- uint8_t alpha)
+ uint8_t alpha,
+ bool lcd_text_requires_opaque_layer)
: context_(context),
bounds_in_layer_(context.ToLayerSpaceBounds(size_in_context)),
saved_(alpha < 255) {
@@ -22,7 +23,8 @@ CompositingRecorder::CompositingRecorder(const PaintContext& context,
context_.list_->CreateAndAppendItem<cc::CompositingDisplayItem>(
bounds_in_layer_, alpha, SkXfermode::kSrcOver_Mode,
- nullptr /* no bounds */, skia::RefPtr<SkColorFilter>());
+ nullptr /* no bounds */, skia::RefPtr<SkColorFilter>(),
+ lcd_text_requires_opaque_layer);
}
CompositingRecorder::~CompositingRecorder() {
« no previous file with comments | « ui/compositor/compositing_recorder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698