| 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 #if defined(OS_ANDROID) | 10 #if defined(OS_ANDROID) |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 duration_sec * base::Time::kMicrosecondsPerSecond); | 522 duration_sec * base::Time::kMicrosecondsPerSecond); |
| 523 layer_tree_host_->StartPageScaleAnimation( | 523 layer_tree_host_->StartPageScaleAnimation( |
| 524 gfx::Vector2d(destination.x, destination.y), | 524 gfx::Vector2d(destination.x, destination.y), |
| 525 use_anchor, | 525 use_anchor, |
| 526 new_page_scale, | 526 new_page_scale, |
| 527 duration); | 527 duration); |
| 528 } | 528 } |
| 529 | 529 |
| 530 void RenderWidgetCompositor::heuristicsForGpuRasterizationUpdated( | 530 void RenderWidgetCompositor::heuristicsForGpuRasterizationUpdated( |
| 531 bool matches_heuristics) { | 531 bool matches_heuristics) { |
| 532 layer_tree_host_->set_has_gpu_rasterization_trigger(matches_heuristics); | 532 layer_tree_host_->SetHasGpuRasterizationTrigger(matches_heuristics); |
| 533 } | 533 } |
| 534 | 534 |
| 535 void RenderWidgetCompositor::setNeedsAnimate() { | 535 void RenderWidgetCompositor::setNeedsAnimate() { |
| 536 layer_tree_host_->SetNeedsAnimate(); | 536 layer_tree_host_->SetNeedsAnimate(); |
| 537 } | 537 } |
| 538 | 538 |
| 539 bool RenderWidgetCompositor::commitRequested() const { | 539 bool RenderWidgetCompositor::commitRequested() const { |
| 540 return layer_tree_host_->CommitRequested(); | 540 return layer_tree_host_->CommitRequested(); |
| 541 } | 541 } |
| 542 | 542 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 widget_->OnSwapBuffersAborted(); | 704 widget_->OnSwapBuffersAborted(); |
| 705 } | 705 } |
| 706 | 706 |
| 707 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 707 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
| 708 cc::ContextProvider* provider = | 708 cc::ContextProvider* provider = |
| 709 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 709 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); |
| 710 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 710 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 711 } | 711 } |
| 712 | 712 |
| 713 } // namespace content | 713 } // namespace content |
| OLD | NEW |