| 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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 | 367 |
| 368 void RenderWidgetCompositor::SetOverdrawBottomHeight( | 368 void RenderWidgetCompositor::SetOverdrawBottomHeight( |
| 369 float overdraw_bottom_height) { | 369 float overdraw_bottom_height) { |
| 370 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); | 370 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); |
| 371 } | 371 } |
| 372 | 372 |
| 373 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { | 373 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
| 374 layer_tree_host_->SetNeedsRedrawRect(damage_rect); | 374 layer_tree_host_->SetNeedsRedrawRect(damage_rect); |
| 375 } | 375 } |
| 376 | 376 |
| 377 void RenderWidgetCompositor::SetNeedsForcedRedraw() { |
| 378 layer_tree_host_->SetNextCommitForcesRedraw(); |
| 379 setNeedsRedraw(); |
| 380 } |
| 381 |
| 377 void RenderWidgetCompositor::SetLatencyInfo( | 382 void RenderWidgetCompositor::SetLatencyInfo( |
| 378 const ui::LatencyInfo& latency_info) { | 383 const ui::LatencyInfo& latency_info) { |
| 379 layer_tree_host_->SetLatencyInfo(latency_info); | 384 layer_tree_host_->SetLatencyInfo(latency_info); |
| 380 } | 385 } |
| 381 | 386 |
| 382 int RenderWidgetCompositor::GetLayerTreeId() const { | 387 int RenderWidgetCompositor::GetLayerTreeId() const { |
| 383 return layer_tree_host_->id(); | 388 return layer_tree_host_->id(); |
| 384 } | 389 } |
| 385 | 390 |
| 386 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { | 391 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 if (!suppress_schedule_composite_) | 626 if (!suppress_schedule_composite_) |
| 622 widget_->scheduleComposite(); | 627 widget_->scheduleComposite(); |
| 623 } | 628 } |
| 624 | 629 |
| 625 scoped_refptr<cc::ContextProvider> | 630 scoped_refptr<cc::ContextProvider> |
| 626 RenderWidgetCompositor::OffscreenContextProvider() { | 631 RenderWidgetCompositor::OffscreenContextProvider() { |
| 627 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); | 632 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); |
| 628 } | 633 } |
| 629 | 634 |
| 630 } // namespace content | 635 } // namespace content |
| OLD | NEW |