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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 85693007: cc: Defer first OutputSurface creation until client is ready (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add tests 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 int id() const { return tree_id_; } 283 int id() const { return tree_id_; }
284 284
285 bool ScheduleMicroBenchmark(const std::string& benchmark_name, 285 bool ScheduleMicroBenchmark(const std::string& benchmark_name,
286 scoped_ptr<base::Value> value, 286 scoped_ptr<base::Value> value,
287 const MicroBenchmark::DoneCallback& callback); 287 const MicroBenchmark::DoneCallback& callback);
288 288
289 protected: 289 protected:
290 LayerTreeHost(LayerTreeHostClient* client, 290 LayerTreeHost(LayerTreeHostClient* client,
291 SharedBitmapManager* manager, 291 SharedBitmapManager* manager,
292 const LayerTreeSettings& settings); 292 const LayerTreeSettings& settings);
293 bool InitializeThreaded( 293 void InitializeThreaded(
294 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 294 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
295 bool InitializeSingleThreaded( 295 void InitializeSingleThreaded(
296 LayerTreeHostSingleThreadClient* single_thread_client); 296 LayerTreeHostSingleThreadClient* single_thread_client);
297 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); 297 void InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing);
298 void SetOutputSurfaceLostForTesting(bool is_lost) { 298 void SetOutputSurfaceLostForTesting(bool is_lost) {
299 output_surface_lost_ = is_lost; 299 output_surface_lost_ = is_lost;
300 } 300 }
301 301
302 MicroBenchmarkController micro_benchmark_controller_; 302 MicroBenchmarkController micro_benchmark_controller_;
303 303
304 private: 304 private:
305 bool InitializeProxy(scoped_ptr<Proxy> proxy); 305 void InitializeProxy(scoped_ptr<Proxy> proxy);
306 306
307 void PaintLayerContents( 307 void PaintLayerContents(
308 const RenderSurfaceLayerList& render_surface_layer_list, 308 const RenderSurfaceLayerList& render_surface_layer_list,
309 ResourceUpdateQueue* queue, 309 ResourceUpdateQueue* queue,
310 bool* did_paint_content, 310 bool* did_paint_content,
311 bool* need_more_updates); 311 bool* need_more_updates);
312 void PaintMasksForRenderSurface(Layer* render_surface_layer, 312 void PaintMasksForRenderSurface(Layer* render_surface_layer,
313 ResourceUpdateQueue* queue, 313 ResourceUpdateQueue* queue,
314 bool* did_paint_content, 314 bool* did_paint_content,
315 bool* need_more_updates); 315 bool* need_more_updates);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 scoped_refptr<Layer> outer_viewport_scroll_layer_; 432 scoped_refptr<Layer> outer_viewport_scroll_layer_;
433 433
434 SharedBitmapManager* shared_bitmap_manager_; 434 SharedBitmapManager* shared_bitmap_manager_;
435 435
436 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 436 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
437 }; 437 };
438 438
439 } // namespace cc 439 } // namespace cc
440 440
441 #endif // CC_TREES_LAYER_TREE_HOST_H_ 441 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698