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

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

Issue 23049007: Implemented printToSkPicture without using WebViewBenchmarkSupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: deleted comment Created 7 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 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"
11 #include "cc/input/top_controls_state.h" 11 #include "cc/input/top_controls_state.h"
12 #include "cc/trees/layer_tree_host_client.h" 12 #include "cc/trees/layer_tree_host_client.h"
13 #include "cc/trees/layer_tree_settings.h" 13 #include "cc/trees/layer_tree_settings.h"
14 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" 14 #include "third_party/WebKit/public/platform/WebLayerTreeView.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 16
17 namespace ui { 17 namespace ui {
18 struct LatencyInfo; 18 struct LatencyInfo;
19 } 19 }
20 20
21 namespace cc { 21 namespace cc {
22 class InputHandler; 22 class InputHandler;
23 class Layer;
23 class LayerTreeHost; 24 class LayerTreeHost;
24 } 25 }
25 26
26 namespace content { 27 namespace content {
27 class RenderWidget; 28 class RenderWidget;
28 29
29 class RenderWidgetCompositor : public WebKit::WebLayerTreeView, 30 class RenderWidgetCompositor : public WebKit::WebLayerTreeView,
30 public cc::LayerTreeHostClient { 31 public cc::LayerTreeHostClient {
31 public: 32 public:
32 // Attempt to construct and initialize a compositor instance for the widget 33 // Attempt to construct and initialize a compositor instance for the widget
(...skipping 11 matching lines...) Expand all
44 void SetRasterizeOnlyVisibleContent(); 45 void SetRasterizeOnlyVisibleContent();
45 void GetRenderingStats(cc::RenderingStats* stats); 46 void GetRenderingStats(cc::RenderingStats* stats);
46 void UpdateTopControlsState(cc::TopControlsState constraints, 47 void UpdateTopControlsState(cc::TopControlsState constraints,
47 cc::TopControlsState current, 48 cc::TopControlsState current,
48 bool animate); 49 bool animate);
49 void SetOverdrawBottomHeight(float overdraw_bottom_height); 50 void SetOverdrawBottomHeight(float overdraw_bottom_height);
50 void SetNeedsRedrawRect(gfx::Rect damage_rect); 51 void SetNeedsRedrawRect(gfx::Rect damage_rect);
51 void SetLatencyInfo(const ui::LatencyInfo& latency_info); 52 void SetLatencyInfo(const ui::LatencyInfo& latency_info);
52 int GetLayerTreeId() const; 53 int GetLayerTreeId() const;
53 void NotifyInputThrottledUntilCommit(); 54 void NotifyInputThrottledUntilCommit();
55 const cc::Layer* GetRootLayer() const;
Ken Russell (switch to Gerrit) 2013/08/21 04:56:26 Was there a reason this was hidden before? If so,
alokp 2013/08/22 04:45:40 I do not know if it was hidden on purpose. Probabl
54 56
55 // WebLayerTreeView implementation. 57 // WebLayerTreeView implementation.
56 virtual void setSurfaceReady(); 58 virtual void setSurfaceReady();
57 virtual void setRootLayer(const WebKit::WebLayer& layer); 59 virtual void setRootLayer(const WebKit::WebLayer& layer);
58 virtual void clearRootLayer(); 60 virtual void clearRootLayer();
59 virtual void setViewportSize( 61 virtual void setViewportSize(
60 const WebKit::WebSize& unused_deprecated, 62 const WebKit::WebSize& unused_deprecated,
61 const WebKit::WebSize& device_viewport_size); 63 const WebKit::WebSize& device_viewport_size);
62 virtual WebKit::WebSize layoutViewportSize() const; 64 virtual WebKit::WebSize layoutViewportSize() const;
63 virtual WebKit::WebSize deviceViewportSize() const; 65 virtual WebKit::WebSize deviceViewportSize() const;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 119
118 bool threaded_; 120 bool threaded_;
119 bool suppress_schedule_composite_; 121 bool suppress_schedule_composite_;
120 RenderWidget* widget_; 122 RenderWidget* widget_;
121 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 123 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
122 }; 124 };
123 125
124 } // namespace content 126 } // namespace content
125 127
126 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 128 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698