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

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

Issue 67563002: cc: Plumbing for impl thread micro benchmarks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: speculative fix 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/test/fake_layer_tree_host.h ('k') | cc/trees/layer_tree_host.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 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 const LayerTreeSettings& settings); 292 const LayerTreeSettings& settings);
293 bool InitializeThreaded( 293 bool InitializeThreaded(
294 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner); 294 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner);
295 bool InitializeSingleThreaded( 295 bool InitializeSingleThreaded(
296 LayerTreeHostSingleThreadClient* single_thread_client); 296 LayerTreeHostSingleThreadClient* single_thread_client);
297 bool InitializeForTesting(scoped_ptr<Proxy> proxy_for_testing); 297 bool 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_;
303
302 private: 304 private:
303 bool InitializeProxy(scoped_ptr<Proxy> proxy); 305 bool InitializeProxy(scoped_ptr<Proxy> proxy);
304 306
305 void PaintLayerContents( 307 void PaintLayerContents(
306 const RenderSurfaceLayerList& render_surface_layer_list, 308 const RenderSurfaceLayerList& render_surface_layer_list,
307 ResourceUpdateQueue* queue, 309 ResourceUpdateQueue* queue,
308 bool* did_paint_content, 310 bool* did_paint_content,
309 bool* need_more_updates); 311 bool* need_more_updates);
310 void PaintMasksForRenderSurface(Layer* render_surface_layer, 312 void PaintMasksForRenderSurface(Layer* render_surface_layer,
311 ResourceUpdateQueue* queue, 313 ResourceUpdateQueue* queue,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 bool needs_full_tree_sync_; 348 bool needs_full_tree_sync_;
347 bool needs_filter_context_; 349 bool needs_filter_context_;
348 350
349 base::CancelableClosure prepaint_callback_; 351 base::CancelableClosure prepaint_callback_;
350 352
351 LayerTreeHostClient* client_; 353 LayerTreeHostClient* client_;
352 scoped_ptr<Proxy> proxy_; 354 scoped_ptr<Proxy> proxy_;
353 355
354 int source_frame_number_; 356 int source_frame_number_;
355 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_; 357 scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_;
356 MicroBenchmarkController micro_benchmark_controller_;
357
358 358
359 bool output_surface_can_be_initialized_; 359 bool output_surface_can_be_initialized_;
360 bool output_surface_lost_; 360 bool output_surface_lost_;
361 int num_failed_recreate_attempts_; 361 int num_failed_recreate_attempts_;
362 362
363 scoped_refptr<Layer> root_layer_; 363 scoped_refptr<Layer> root_layer_;
364 scoped_refptr<HeadsUpDisplayLayer> hud_layer_; 364 scoped_refptr<HeadsUpDisplayLayer> hud_layer_;
365 365
366 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_; 366 scoped_ptr<PrioritizedResourceManager> contents_texture_manager_;
367 scoped_ptr<PrioritizedResource> surface_memory_placeholder_; 367 scoped_ptr<PrioritizedResource> surface_memory_placeholder_;
(...skipping 64 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
« no previous file with comments | « cc/test/fake_layer_tree_host.h ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698