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

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

Issue 53153006: Simplify rate limiting since it's main thread shared context only (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 7 years, 1 month 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
« no previous file with comments | « cc/trees/layer_tree_host_client.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback) 119 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
120 OVERRIDE; 120 OVERRIDE;
121 virtual void DidInitializeOutputSurface(bool success) OVERRIDE; 121 virtual void DidInitializeOutputSurface(bool success) OVERRIDE;
122 virtual void WillCommit() OVERRIDE; 122 virtual void WillCommit() OVERRIDE;
123 virtual void DidCommit() OVERRIDE; 123 virtual void DidCommit() OVERRIDE;
124 virtual void DidCommitAndDrawFrame() OVERRIDE; 124 virtual void DidCommitAndDrawFrame() OVERRIDE;
125 virtual void DidCompleteSwapBuffers() OVERRIDE; 125 virtual void DidCompleteSwapBuffers() OVERRIDE;
126 virtual void ScheduleComposite() OVERRIDE; 126 virtual void ScheduleComposite() OVERRIDE;
127 virtual scoped_refptr<cc::ContextProvider> 127 virtual scoped_refptr<cc::ContextProvider>
128 OffscreenContextProvider() OVERRIDE; 128 OffscreenContextProvider() OVERRIDE;
129 virtual void RateLimitSharedMainThreadContext() OVERRIDE;
129 130
130 private: 131 private:
131 RenderWidgetCompositor(RenderWidget* widget, bool threaded); 132 RenderWidgetCompositor(RenderWidget* widget, bool threaded);
132 133
133 bool initialize(cc::LayerTreeSettings settings); 134 bool initialize(cc::LayerTreeSettings settings);
134 135
135 bool threaded_; 136 bool threaded_;
136 bool suppress_schedule_composite_; 137 bool suppress_schedule_composite_;
137 RenderWidget* widget_; 138 RenderWidget* widget_;
138 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 139 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
139 }; 140 };
140 141
141 } // namespace content 142 } // namespace content
142 143
143 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 144 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_client.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698