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

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

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 188402 Created 7 years, 9 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/time.h" 8 #include "base/time.h"
9 #include "cc/layer_tree_host_client.h" 9 #include "cc/layer_tree_host_client.h"
10 #include "cc/layer_tree_settings.h" 10 #include "cc/layer_tree_settings.h"
(...skipping 14 matching lines...) Expand all
25 public cc::LayerTreeHostClient { 25 public cc::LayerTreeHostClient {
26 public: 26 public:
27 // Attempt to construct and initialize a compositor instance for the widget 27 // Attempt to construct and initialize a compositor instance for the widget
28 // with the given settings. Returns NULL if initialization fails. 28 // with the given settings. Returns NULL if initialization fails.
29 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget); 29 static scoped_ptr<RenderWidgetCompositor> Create(RenderWidget* widget);
30 30
31 virtual ~RenderWidgetCompositor(); 31 virtual ~RenderWidgetCompositor();
32 32
33 void SetSuppressScheduleComposite(bool suppress); 33 void SetSuppressScheduleComposite(bool suppress);
34 void Animate(base::TimeTicks time); 34 void Animate(base::TimeTicks time);
35 void Composite(); 35 void Composite(base::TimeTicks frame_begin_time);
36 void GetRenderingStats(cc::RenderingStats* stats); 36 void GetRenderingStats(cc::RenderingStats* stats);
37 skia::RefPtr<SkPicture> CapturePicture(); 37 skia::RefPtr<SkPicture> CapturePicture();
38 void EnableHidingTopControls(bool enable); 38 void EnableHidingTopControls(bool enable);
39 39
40 // WebLayerTreeView implementation. 40 // WebLayerTreeView implementation.
41 virtual void setSurfaceReady(); 41 virtual void setSurfaceReady();
42 virtual void setRootLayer(const WebKit::WebLayer& layer); 42 virtual void setRootLayer(const WebKit::WebLayer& layer);
43 virtual void clearRootLayer(); 43 virtual void clearRootLayer();
44 virtual void setViewportSize( 44 virtual void setViewportSize(
45 const WebKit::WebSize& layout_viewport_size, 45 const WebKit::WebSize& layout_viewport_size,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 bool threaded_; 102 bool threaded_;
103 bool suppress_schedule_composite_; 103 bool suppress_schedule_composite_;
104 RenderWidget* widget_; 104 RenderWidget* widget_;
105 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 105 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
106 }; 106 };
107 107
108 } // namespace content 108 } // namespace content
109 109
110 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 110 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
111 111
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698