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

Unified Diff: ui/compositor/layer.h

Issue 10831396: Remove transitional WEBLAYER_IS_PURE_VIRTUAL code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index a999de8e6dfc7ccc8b0767d705b4127a6d2d161d..2e064cee7db33b6475c595c1b0526086d4e3ec47 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -255,17 +255,9 @@ class COMPOSITOR_EXPORT Layer
// WebContentLayerClient
virtual void paintContents(WebKit::WebCanvas*,
const WebKit::WebRect& clip,
-#if defined(WEBCONTENTLAYERCLIENT_FLOAT_OPAQUE_RECT)
WebKit::WebFloatRect& opaque);
-#else
- WebKit::WebRect& opaque);
-#endif
-#if defined(WEBLAYER_IS_PURE_VIRTUAL)
WebKit::WebLayer* web_layer() { return web_layer_; }
-#else
- WebKit::WebLayer web_layer() { return web_layer_; }
-#endif
float device_scale_factor() const { return device_scale_factor_; }
@@ -380,16 +372,12 @@ class COMPOSITOR_EXPORT Layer
scoped_ptr<LayerAnimator> animator_;
-#if defined(WEBLAYER_IS_PURE_VIRTUAL)
// Ownership of the layer is held through one of the strongly typed layer
// pointers, depending on which sort of layer this is.
scoped_ptr<WebKit::WebContentLayer> content_layer_;
scoped_ptr<WebKit::WebExternalTextureLayer> texture_layer_;
scoped_ptr<WebKit::WebSolidColorLayer> solid_color_layer_;
WebKit::WebLayer* web_layer_;
-#else
- WebKit::WebLayer web_layer_;
-#endif
bool web_layer_is_accelerated_;
bool show_debug_borders_;
« no previous file with comments | « ui/compositor/compositor.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698