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

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

Issue 85693007: cc: Defer first OutputSurface creation until client is ready (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 // cc::LayerTreeHostSingleThreadClient implementation. 138 // cc::LayerTreeHostSingleThreadClient implementation.
139 virtual void ScheduleComposite() OVERRIDE; 139 virtual void ScheduleComposite() OVERRIDE;
140 virtual void ScheduleAnimation() OVERRIDE; 140 virtual void ScheduleAnimation() OVERRIDE;
141 virtual void DidPostSwapBuffers() OVERRIDE; 141 virtual void DidPostSwapBuffers() OVERRIDE;
142 virtual void DidAbortSwapBuffers() OVERRIDE; 142 virtual void DidAbortSwapBuffers() OVERRIDE;
143 143
144 private: 144 private:
145 RenderWidgetCompositor(RenderWidget* widget, bool threaded); 145 RenderWidgetCompositor(RenderWidget* widget, bool threaded);
146 146
147 bool Initialize(cc::LayerTreeSettings settings); 147 void Initialize(cc::LayerTreeSettings settings);
148 148
149 bool threaded_; 149 bool threaded_;
150 bool suppress_schedule_composite_; 150 bool suppress_schedule_composite_;
151 RenderWidget* widget_; 151 RenderWidget* widget_;
152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 152 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
153 }; 153 };
154 154
155 } // namespace content 155 } // namespace content
156 156
157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 157 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « chrome/test/gpu/gpu_feature_browsertest.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698