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

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

Issue 134623005: Make SingleThreadProxy a SchedulerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: danakj review 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 132 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
133 OVERRIDE; 133 OVERRIDE;
134 virtual void DidInitializeOutputSurface() OVERRIDE; 134 virtual void DidInitializeOutputSurface() OVERRIDE;
135 virtual void WillCommit() OVERRIDE; 135 virtual void WillCommit() OVERRIDE;
136 virtual void DidCommit() OVERRIDE; 136 virtual void DidCommit() OVERRIDE;
137 virtual void DidCommitAndDrawFrame() OVERRIDE; 137 virtual void DidCommitAndDrawFrame() OVERRIDE;
138 virtual void DidCompleteSwapBuffers() OVERRIDE; 138 virtual void DidCompleteSwapBuffers() OVERRIDE;
139 virtual void RateLimitSharedMainThreadContext() OVERRIDE; 139 virtual void RateLimitSharedMainThreadContext() OVERRIDE;
140 140
141 // cc::LayerTreeHostSingleThreadClient implementation. 141 // cc::LayerTreeHostSingleThreadClient implementation.
142 virtual void ScheduleComposite() OVERRIDE;
143 virtual void ScheduleAnimation() OVERRIDE;
144 virtual void DidPostSwapBuffers() OVERRIDE; 142 virtual void DidPostSwapBuffers() OVERRIDE;
145 virtual void DidAbortSwapBuffers() OVERRIDE; 143 virtual void DidAbortSwapBuffers() OVERRIDE;
146 144
147 private: 145 private:
148 RenderWidgetCompositor(RenderWidget* widget, bool threaded); 146 RenderWidgetCompositor(RenderWidget* widget, bool threaded);
149 147
150 void Initialize(cc::LayerTreeSettings settings); 148 void Initialize(cc::LayerTreeSettings settings);
151 149
152 bool threaded_; 150 bool threaded_;
153 bool suppress_schedule_composite_;
154 RenderWidget* widget_; 151 RenderWidget* widget_;
155 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
156 }; 153 };
157 154
158 } // namespace content 155 } // namespace content
159 156
160 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698