| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index 0fa8553269745d37925a768409dfb62b8805deb8..96093ec8dba355a01c2f6de20a2bd0439069653f 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -229,6 +229,7 @@ LayerTreeHostImpl::LayerTreeHostImpl(
|
| int id)
|
| : client_(client),
|
| proxy_(proxy),
|
| + needs_begin_frames_(false),
|
| use_gpu_rasterization_(false),
|
| input_handler_client_(NULL),
|
| did_lock_scrolling_layer_(false),
|
| @@ -1429,7 +1430,7 @@ void LayerTreeHostImpl::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
|
| }
|
|
|
| void LayerTreeHostImpl::BeginFrame(const BeginFrameArgs& args) {
|
| - client_->BeginFrame(args);
|
| + SendBeginFrame(args);
|
| }
|
|
|
| void LayerTreeHostImpl::DidSwapBuffers() {
|
| @@ -1669,7 +1670,12 @@ bool LayerTreeHostImpl::SwapBuffers(const LayerTreeHostImpl::FrameData& frame) {
|
| return true;
|
| }
|
|
|
| -void LayerTreeHostImpl::SetNeedsBeginFrame(bool enable) {
|
| +bool LayerTreeHostImpl::NeedsBeginFrames() const {
|
| + return needs_begin_frames_;
|
| +}
|
| +
|
| +void LayerTreeHostImpl::SetNeedsBeginFrames(bool enable) {
|
| + needs_begin_frames_ = enable;
|
| if (output_surface_)
|
| output_surface_->SetNeedsBeginFrame(enable);
|
| else
|
| @@ -3152,6 +3158,10 @@ BeginFrameArgs LayerTreeHostImpl::CurrentBeginFrameArgs() const {
|
| BeginFrameArgs::DefaultInterval());
|
| }
|
|
|
| +void LayerTreeHostImpl::AsValueInto(base::debug::TracedValue* value) const {
|
| + return AsValueWithFrameInto(NULL, value);
|
| +}
|
| +
|
| scoped_refptr<base::debug::ConvertableToTraceFormat>
|
| LayerTreeHostImpl::AsValue() const {
|
| return AsValueWithFrame(NULL);
|
|
|