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

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

Issue 723713003: cc: Add SetChildrenNeedBeginFrames() & SendBeginFramesToChildren() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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
« no previous file with comments | « cc/test/layer_tree_test.cc ('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 <set> 10 #include <set>
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // See swap_promise.h for how to use SwapPromise. 307 // See swap_promise.h for how to use SwapPromise.
308 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); 308 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise);
309 309
310 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); 310 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
311 311
312 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } 312 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); }
313 313
314 void set_surface_id_namespace(uint32_t id_namespace); 314 void set_surface_id_namespace(uint32_t id_namespace);
315 SurfaceSequence CreateSurfaceSequence(); 315 SurfaceSequence CreateSurfaceSequence();
316 316
317 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const;
318 void SendBeginFramesToChildren(const BeginFrameArgs& args) const;
319
317 protected: 320 protected:
318 LayerTreeHost(LayerTreeHostClient* client, 321 LayerTreeHost(LayerTreeHostClient* client,
319 SharedBitmapManager* shared_bitmap_manager, 322 SharedBitmapManager* shared_bitmap_manager,
320 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 323 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
321 const LayerTreeSettings& settings); 324 const LayerTreeSettings& settings);
322 void InitializeThreaded( 325 void InitializeThreaded(
323 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 326 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
324 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner, 327 scoped_refptr<base::SingleThreadTaskRunner> impl_task_runner,
325 scoped_ptr<BeginFrameSource> external_begin_frame_source); 328 scoped_ptr<BeginFrameSource> external_begin_frame_source);
326 void InitializeSingleThreaded( 329 void InitializeSingleThreaded(
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 478
476 uint32_t surface_id_namespace_; 479 uint32_t surface_id_namespace_;
477 uint32_t next_surface_sequence_; 480 uint32_t next_surface_sequence_;
478 481
479 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 482 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
480 }; 483 };
481 484
482 } // namespace cc 485 } // namespace cc
483 486
484 #endif // CC_TREES_LAYER_TREE_HOST_H_ 487 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698