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

Unified Diff: ui/compositor/layer.cc

Issue 10700028: Prepare for WebContentLayerClient API change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 5726770df112d465700ac739b13339de4e64b2be..f45fd8471ce856aeb92ca0bb815003694cf64945 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -422,7 +422,11 @@ void Layer::OnDeviceScaleFactorChanged(float device_scale_factor) {
void Layer::paintContents(WebKit::WebCanvas* web_canvas,
const WebKit::WebRect& clip,
+#if defined(WEBCONTENTLAYERCLIENT_FLOAT_OPAQUE_RECT)
+ WebKit::WebFloatRect& opaque) {
+#else
WebKit::WebRect& opaque) {
+#endif
TRACE_EVENT0("ui", "Layer::paintContents");
gfx::Canvas canvas(web_canvas,
ui::GetScaleFactorFromScale(device_scale_factor_), scale_content_);
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698