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

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: 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 // cc::LayerTreeHostSingleThreadClient implementation. 133 // cc::LayerTreeHostSingleThreadClient implementation.
134 virtual void ScheduleComposite() OVERRIDE; 134 virtual void ScheduleComposite() OVERRIDE;
135 virtual void ScheduleAnimation() OVERRIDE; 135 virtual void ScheduleAnimation() OVERRIDE;
136 virtual void DidPostSwapBuffers() OVERRIDE; 136 virtual void DidPostSwapBuffers() OVERRIDE;
137 virtual void DidAbortSwapBuffers() OVERRIDE; 137 virtual void DidAbortSwapBuffers() OVERRIDE;
138 138
139 private: 139 private:
140 RenderWidgetCompositor(RenderWidget* widget, bool threaded); 140 RenderWidgetCompositor(RenderWidget* widget, bool threaded);
141 141
142 bool Initialize(cc::LayerTreeSettings settings); 142 void Initialize(cc::LayerTreeSettings settings);
143 143
144 bool threaded_; 144 bool threaded_;
145 bool suppress_schedule_composite_; 145 bool suppress_schedule_composite_;
146 RenderWidget* widget_; 146 RenderWidget* widget_;
147 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 147 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
148 }; 148 };
149 149
150 } // namespace content 150 } // namespace content
151 151
152 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 152 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698