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 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 } | 516 } |
517 | 517 |
518 int RenderWidgetCompositor::GetLayerTreeId() const { | 518 int RenderWidgetCompositor::GetLayerTreeId() const { |
519 return layer_tree_host_->id(); | 519 return layer_tree_host_->id(); |
520 } | 520 } |
521 | 521 |
522 int RenderWidgetCompositor::GetSourceFrameNumber() const { | 522 int RenderWidgetCompositor::GetSourceFrameNumber() const { |
523 return layer_tree_host_->source_frame_number(); | 523 return layer_tree_host_->source_frame_number(); |
524 } | 524 } |
525 | 525 |
| 526 void RenderWidgetCompositor::SetNeedsUpdateLayers() { |
| 527 layer_tree_host_->SetNeedsUpdateLayers(); |
| 528 } |
| 529 |
526 void RenderWidgetCompositor::SetNeedsCommit() { | 530 void RenderWidgetCompositor::SetNeedsCommit() { |
527 layer_tree_host_->SetNeedsCommit(); | 531 layer_tree_host_->SetNeedsCommit(); |
528 } | 532 } |
529 | 533 |
530 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { | 534 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { |
531 layer_tree_host_->NotifyInputThrottledUntilCommit(); | 535 layer_tree_host_->NotifyInputThrottledUntilCommit(); |
532 } | 536 } |
533 | 537 |
534 const cc::Layer* RenderWidgetCompositor::GetRootLayer() const { | 538 const cc::Layer* RenderWidgetCompositor::GetRootLayer() const { |
535 return layer_tree_host_->root_layer(); | 539 return layer_tree_host_->root_layer(); |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 widget_->OnSwapBuffersAborted(); | 893 widget_->OnSwapBuffersAborted(); |
890 } | 894 } |
891 | 895 |
892 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 896 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
893 cc::ContextProvider* provider = | 897 cc::ContextProvider* provider = |
894 compositor_deps_->GetSharedMainThreadContextProvider(); | 898 compositor_deps_->GetSharedMainThreadContextProvider(); |
895 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 899 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
896 } | 900 } |
897 | 901 |
898 } // namespace content | 902 } // namespace content |
OLD | NEW |