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

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

Issue 300963004: cc: Add message passing mechanism to micro benchmarking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments. Created 6 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 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/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // is called on LayerTreeHost, the original latency info will be turned 63 // is called on LayerTreeHost, the original latency info will be turned
64 // into a LatencyInfoSwapPromise. 64 // into a LatencyInfoSwapPromise.
65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
66 ui::LatencyInfo* latency); 66 ui::LatencyInfo* latency);
67 // Calling QueueSwapPromise() to directly queue a SwapPromise into 67 // Calling QueueSwapPromise() to directly queue a SwapPromise into
68 // LayerTreeHost. 68 // LayerTreeHost.
69 void QueueSwapPromise(scoped_ptr<cc::SwapPromise> swap_promise); 69 void QueueSwapPromise(scoped_ptr<cc::SwapPromise> swap_promise);
70 int GetLayerTreeId() const; 70 int GetLayerTreeId() const;
71 void NotifyInputThrottledUntilCommit(); 71 void NotifyInputThrottledUntilCommit();
72 const cc::Layer* GetRootLayer() const; 72 const cc::Layer* GetRootLayer() const;
73 bool ScheduleMicroBenchmark( 73 int ScheduleMicroBenchmark(
74 const std::string& name, 74 const std::string& name,
75 scoped_ptr<base::Value> value, 75 scoped_ptr<base::Value> value,
76 const base::Callback<void(scoped_ptr<base::Value>)>& callback); 76 const base::Callback<void(scoped_ptr<base::Value>)>& callback);
77 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value);
77 78
78 // WebLayerTreeView implementation. 79 // WebLayerTreeView implementation.
79 virtual void setSurfaceReady(); 80 virtual void setSurfaceReady();
80 virtual void setRootLayer(const blink::WebLayer& layer); 81 virtual void setRootLayer(const blink::WebLayer& layer);
81 virtual void clearRootLayer(); 82 virtual void clearRootLayer();
82 virtual void setViewportSize( 83 virtual void setViewportSize(
83 const blink::WebSize& unused_deprecated, 84 const blink::WebSize& unused_deprecated,
84 const blink::WebSize& device_viewport_size); 85 const blink::WebSize& device_viewport_size);
85 virtual void setViewportSize(const blink::WebSize& device_viewport_size); 86 virtual void setViewportSize(const blink::WebSize& device_viewport_size);
86 virtual blink::WebSize layoutViewportSize() const; 87 virtual blink::WebSize layoutViewportSize() const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 150
150 bool threaded_; 151 bool threaded_;
151 bool suppress_schedule_composite_; 152 bool suppress_schedule_composite_;
152 RenderWidget* widget_; 153 RenderWidget* widget_;
153 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 154 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
154 }; 155 };
155 156
156 } // namespace content 157 } // namespace content
157 158
158 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 159 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698