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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 23922006: Plumb PinchVirtualViewport layers into CC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index cb7df844a6d1de53328c91d0022abc81d18cb46e..9b22e2bb57f4806e38e423a09622da4b2e4e96cc 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -489,6 +489,27 @@ void RenderWidgetCompositor::registerForAnimations(WebKit::WebLayer* layer) {
layer_tree_host_->animation_registrar());
}
+void RenderWidgetCompositor::registerPinchViewportLayers(
+ const WebKit::WebLayer* innerViewportClipLayer,
enne (OOO) 2013/09/10 17:03:04 I understand setting the inner and outer viewport
wjmaclean 2013/09/11 00:19:25 Actually, the clip layer probably does not need to
enne (OOO) 2013/09/11 00:49:46 Yeah, I was thinking something along those lines t
wjmaclean 2013/09/11 17:30:37 Hmm, ok ... if we're setting this on the Blink sid
+ const WebKit::WebLayer* pageScaleLayerLayer,
enne (OOO) 2013/09/10 17:03:04 I'd like it if this patch could help make parts of
wjmaclean 2013/09/11 00:19:25 Hmm, ok. I guess I was still operating on the prin
enne (OOO) 2013/09/11 00:49:46 If you want to keep it separate as an intermediate
wjmaclean 2013/09/11 17:30:37 Done. I've renamed the WebLayerTreeView interface
+ const WebKit::WebLayer* innerViewportScrollLayer,
+ const WebKit::WebLayer* outerViewportScrollLayer) {
+ layer_tree_host_->RegisterPinchViewportLayers(
+ static_cast<const webkit::WebLayerImpl*>(innerViewportClipLayer)->layer(),
+ static_cast<const webkit::WebLayerImpl*>(pageScaleLayerLayer)->layer(),
+ static_cast<const webkit::WebLayerImpl*>(innerViewportScrollLayer)
+ ->layer(),
+ static_cast<const webkit::WebLayerImpl*>(outerViewportScrollLayer)
+ ->layer());
+}
+
+void RenderWidgetCompositor::clearPinchViewportLayers() {
+ layer_tree_host_->RegisterPinchViewportLayers(scoped_refptr<cc::Layer>(),
+ scoped_refptr<cc::Layer>(),
+ scoped_refptr<cc::Layer>(),
+ scoped_refptr<cc::Layer>());
+}
+
bool RenderWidgetCompositor::compositeAndReadback(
void *pixels, const WebRect& rect_in_device_viewport) {
return layer_tree_host_->CompositeAndReadback(pixels,
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698