| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include "content/renderer/gpu/render_widget_compositor.h" | 5 #include "content/renderer/gpu/render_widget_compositor.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 else | 264 else |
| 265 TRACE_EVENT_ASYNC_END0("gpu", | 265 TRACE_EVENT_ASYNC_END0("gpu", |
| 266 "RenderWidgetCompositor::SetSuppressScheduleComposite", this); | 266 "RenderWidgetCompositor::SetSuppressScheduleComposite", this); |
| 267 suppress_schedule_composite_ = suppress; | 267 suppress_schedule_composite_ = suppress; |
| 268 } | 268 } |
| 269 | 269 |
| 270 void RenderWidgetCompositor::Animate(base::TimeTicks time) { | 270 void RenderWidgetCompositor::Animate(base::TimeTicks time) { |
| 271 layer_tree_host_->UpdateAnimations(time); | 271 layer_tree_host_->UpdateAnimations(time); |
| 272 } | 272 } |
| 273 | 273 |
| 274 void RenderWidgetCompositor::Composite() { | 274 void RenderWidgetCompositor::Composite(base::TimeTicks frame_begin_time) { |
| 275 layer_tree_host_->Composite(); | 275 layer_tree_host_->Composite(frame_begin_time); |
| 276 } | 276 } |
| 277 | 277 |
| 278 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { | 278 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { |
| 279 layer_tree_host_->CollectRenderingStats(stats); | 279 layer_tree_host_->CollectRenderingStats(stats); |
| 280 } | 280 } |
| 281 | 281 |
| 282 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { | 282 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { |
| 283 return layer_tree_host_->CapturePicture(); | 283 return layer_tree_host_->CapturePicture(); |
| 284 } | 284 } |
| 285 | 285 |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 504 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
| 505 } | 505 } |
| 506 | 506 |
| 507 scoped_refptr<cc::ContextProvider> | 507 scoped_refptr<cc::ContextProvider> |
| 508 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 508 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
| 509 return RenderThreadImpl::current()-> | 509 return RenderThreadImpl::current()-> |
| 510 OffscreenContextProviderForCompositorThread(); | 510 OffscreenContextProviderForCompositorThread(); |
| 511 } | 511 } |
| 512 | 512 |
| 513 } // namespace content | 513 } // namespace content |
| OLD | NEW |