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

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

Issue 791373003: Add Set Authoritative VSync Interval function (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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // See swap_promise.h for how to use SwapPromise. 316 // See swap_promise.h for how to use SwapPromise.
317 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise); 317 void QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise);
318 318
319 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason); 319 void BreakSwapPromises(SwapPromise::DidNotSwapReason reason);
320 320
321 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); } 321 size_t num_queued_swap_promises() const { return swap_promise_list_.size(); }
322 322
323 void set_surface_id_namespace(uint32_t id_namespace); 323 void set_surface_id_namespace(uint32_t id_namespace);
324 SurfaceSequence CreateSurfaceSequence(); 324 SurfaceSequence CreateSurfaceSequence();
325 325
326 void SetAuthoritativeVSyncInterval(base::TimeDelta interval) const;
326 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const; 327 void SetChildrenNeedBeginFrames(bool children_need_begin_frames) const;
327 void SendBeginFramesToChildren(const BeginFrameArgs& args) const; 328 void SendBeginFramesToChildren(const BeginFrameArgs& args) const;
328 329
329 protected: 330 protected:
330 LayerTreeHost(LayerTreeHostClient* client, 331 LayerTreeHost(LayerTreeHostClient* client,
331 SharedBitmapManager* shared_bitmap_manager, 332 SharedBitmapManager* shared_bitmap_manager,
332 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 333 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
333 const LayerTreeSettings& settings); 334 const LayerTreeSettings& settings);
334 void InitializeThreaded( 335 void InitializeThreaded(
335 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 336 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 484
484 uint32_t surface_id_namespace_; 485 uint32_t surface_id_namespace_;
485 uint32_t next_surface_sequence_; 486 uint32_t next_surface_sequence_;
486 487
487 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
488 }; 489 };
489 490
490 } // namespace cc 491 } // namespace cc
491 492
492 #endif // CC_TREES_LAYER_TREE_HOST_H_ 493 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698