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

Unified Diff: cc/blink/web_display_item_list_impl.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 | « no previous file | cc/playback/compositing_display_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_display_item_list_impl.cc
diff --git a/cc/blink/web_display_item_list_impl.cc b/cc/blink/web_display_item_list_impl.cc
index 9859d1c39ab4782af2b9d188a8aaad336593f6d3..f5d89b0e6e921075b9c247a080f9bfe3522bed99 100644
--- a/cc/blink/web_display_item_list_impl.cc
+++ b/cc/blink/web_display_item_list_impl.cc
@@ -168,14 +168,16 @@ void WebDisplayItemListImpl::appendCompositingItem(
// TODO(ajuma): This should really be rounding instead of flooring the alpha
// value, but that breaks slimming paint reftests.
+ const bool kLcdTextRequiresOpaqueLayer = true;
if (display_item_list_->RetainsIndividualDisplayItems()) {
display_item_list_->CreateAndAppendItem<cc::CompositingDisplayItem>(
visual_rect, static_cast<uint8_t>(gfx::ToFlooredInt(255 * opacity)),
- xfermode, bounds, skia::SharePtr(color_filter));
+ xfermode, bounds, skia::SharePtr(color_filter),
+ kLcdTextRequiresOpaqueLayer);
} else {
cc::CompositingDisplayItem item(
static_cast<uint8_t>(gfx::ToFlooredInt(255 * opacity)), xfermode,
- bounds, skia::SharePtr(color_filter));
+ bounds, skia::SharePtr(color_filter), kLcdTextRequiresOpaqueLayer);
display_item_list_->RasterIntoCanvas(item);
}
}
« no previous file with comments | « no previous file | cc/playback/compositing_display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698