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

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

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // See swap_promise.h for how to use SwapPromise. 314 // See swap_promise.h for how to use SwapPromise.
315 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); 315 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise);
316 316
317 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); 317 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
318 318
319 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } 319 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); }
320 320
321 void set_surface_id_namespace(uint32_t id_namespace); 321 void set_surface_id_namespace(uint32_t id_namespace);
322 SurfaceSequence CreateSurfaceSequence(); 322 SurfaceSequence CreateSurfaceSequence();
323 323
324 void SetAuthoritativeVSyncInterval(base::TimeDelta inverval) const;
324 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; 325 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const;
325 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; 326 void SendBeginFramesToChildren(const BeginFrameArgs& args) const;
326 327
327 protected: 328 protected:
328 LayerTreeHost(LayerTreeHostClient* client, 329 LayerTreeHost(LayerTreeHostClient* client,
329 SharedBitmapManager* shared_bitmap_manager, 330 SharedBitmapManager* shared_bitmap_manager,
330 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 331 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
331 const LayerTreeSettings& settings); 332 const LayerTreeSettings& settings);
332 void InitializeThreaded( 333 void InitializeThreaded(
333 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 334 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 482
482 uint32_t surface_id_namespace_; 483 uint32_t surface_id_namespace_;
483 uint32_t next_surface_sequence_; 484 uint32_t next_surface_sequence_;
484 485
485 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 486 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
486 }; 487 };
487 488
488 } // namespace cc 489 } // namespace cc
489 490
490 #endif // CC_TREES_LAYER_TREE_HOST_H_ 491 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698