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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 23922006: Plumb PinchVirtualViewport layers into CC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename function, remove clip layer. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/debug/rendering_stats.h" 10 #include "cc/debug/rendering_stats.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 float new_page_scale, 80 float new_page_scale,
81 double duration_sec); 81 double duration_sec);
82 virtual void setNeedsAnimate(); 82 virtual void setNeedsAnimate();
83 virtual void setNeedsRedraw(); 83 virtual void setNeedsRedraw();
84 virtual bool commitRequested() const; 84 virtual bool commitRequested() const;
85 virtual void didStopFlinging(); 85 virtual void didStopFlinging();
86 virtual bool compositeAndReadback(void *pixels, const WebKit::WebRect& rect); 86 virtual bool compositeAndReadback(void *pixels, const WebKit::WebRect& rect);
87 virtual void finishAllRendering(); 87 virtual void finishAllRendering();
88 virtual void setDeferCommits(bool defer_commits); 88 virtual void setDeferCommits(bool defer_commits);
89 virtual void registerForAnimations(WebKit::WebLayer* layer); 89 virtual void registerForAnimations(WebKit::WebLayer* layer);
90 virtual void registerViewportLayers(
91 const WebKit::WebLayer* pageScaleLayer,
92 const WebKit::WebLayer* innerViewportScrollLayer,
93 const WebKit::WebLayer* outerViewportScrollLayer) OVERRIDE;
94 virtual void clearViewportLayers() OVERRIDE;
90 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {} 95 virtual void renderingStats(WebKit::WebRenderingStats& stats) const {}
91 virtual void setShowFPSCounter(bool show); 96 virtual void setShowFPSCounter(bool show);
92 virtual void setShowPaintRects(bool show); 97 virtual void setShowPaintRects(bool show);
93 virtual void setShowDebugBorders(bool show); 98 virtual void setShowDebugBorders(bool show);
94 virtual void setContinuousPaintingEnabled(bool enabled); 99 virtual void setContinuousPaintingEnabled(bool enabled);
95 virtual void setShowScrollBottleneckRects(bool show); 100 virtual void setShowScrollBottleneckRects(bool show);
96 101
97 // cc::LayerTreeHostClient implementation. 102 // cc::LayerTreeHostClient implementation.
98 virtual void WillBeginFrame() OVERRIDE; 103 virtual void WillBeginFrame() OVERRIDE;
99 virtual void DidBeginFrame() OVERRIDE; 104 virtual void DidBeginFrame() OVERRIDE;
(...skipping 21 matching lines...) Expand all
121 126
122 bool threaded_; 127 bool threaded_;
123 bool suppress_schedule_composite_; 128 bool suppress_schedule_composite_;
124 RenderWidget* widget_; 129 RenderWidget* widget_;
125 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 130 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
126 }; 131 };
127 132
128 } // namespace content 133 } // namespace content
129 134
130 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 135 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698