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

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

Issue 252663002: Track plugin input event latency (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix win & mac build Created 6 years, 7 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
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"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "cc/base/swap_promise.h"
12 #include "cc/base/swap_promise_monitor.h" 13 #include "cc/base/swap_promise_monitor.h"
13 #include "cc/input/top_controls_state.h" 14 #include "cc/input/top_controls_state.h"
14 #include "cc/trees/layer_tree_host_client.h" 15 #include "cc/trees/layer_tree_host_client.h"
15 #include "cc/trees/layer_tree_host_single_thread_client.h" 16 #include "cc/trees/layer_tree_host_single_thread_client.h"
16 #include "cc/trees/layer_tree_settings.h" 17 #include "cc/trees/layer_tree_settings.h"
17 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" 18 #include "third_party/WebKit/public/platform/WebLayerTreeView.h"
18 #include "third_party/skia/include/core/SkBitmap.h" 19 #include "third_party/skia/include/core/SkBitmap.h"
19 #include "ui/gfx/rect.h" 20 #include "ui/gfx/rect.h"
20 21
21 namespace ui { 22 namespace ui {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. 57 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs.
57 // Redraw will be forced after the next commit 58 // Redraw will be forced after the next commit
58 void SetNeedsForcedRedraw(); 59 void SetNeedsForcedRedraw();
59 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped 60 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped
60 // LatencyInfoSwapPromiseMonitor. During the life time of the 61 // LatencyInfoSwapPromiseMonitor. During the life time of the
61 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() 62 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer()
62 // is called on LayerTreeHost, the original latency info will be turned 63 // is called on LayerTreeHost, the original latency info will be turned
63 // into a LatencyInfoSwapPromise. 64 // into a LatencyInfoSwapPromise.
64 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 65 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
65 ui::LatencyInfo* latency); 66 ui::LatencyInfo* latency);
67 // Calling QueueSwapPromise() to directly queue a SwapPromise into
68 // LayerTreeHost.
69 void QueueSwapPromise(scoped_ptr<cc::SwapPromise> swap_promise);
66 int GetLayerTreeId() const; 70 int GetLayerTreeId() const;
67 void NotifyInputThrottledUntilCommit(); 71 void NotifyInputThrottledUntilCommit();
68 const cc::Layer* GetRootLayer() const; 72 const cc::Layer* GetRootLayer() const;
69 bool ScheduleMicroBenchmark( 73 bool ScheduleMicroBenchmark(
70 const std::string& name, 74 const std::string& name,
71 scoped_ptr<base::Value> value, 75 scoped_ptr<base::Value> value,
72 const base::Callback<void(scoped_ptr<base::Value>)>& callback); 76 const base::Callback<void(scoped_ptr<base::Value>)>& callback);
73 77
74 // WebLayerTreeView implementation. 78 // WebLayerTreeView implementation.
75 virtual void setSurfaceReady(); 79 virtual void setSurfaceReady();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 149
146 bool threaded_; 150 bool threaded_;
147 bool suppress_schedule_composite_; 151 bool suppress_schedule_composite_;
148 RenderWidget* widget_; 152 RenderWidget* widget_;
149 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 153 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
150 }; 154 };
151 155
152 } // namespace content 156 } // namespace content
153 157
154 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 158 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/component_updater/ppapi_utils.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698