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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 375 |
376 void RenderWidgetCompositor::SetOverdrawBottomHeight( | 376 void RenderWidgetCompositor::SetOverdrawBottomHeight( |
377 float overdraw_bottom_height) { | 377 float overdraw_bottom_height) { |
378 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); | 378 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); |
379 } | 379 } |
380 | 380 |
381 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { | 381 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
382 layer_tree_host_->SetNeedsRedrawRect(damage_rect); | 382 layer_tree_host_->SetNeedsRedrawRect(damage_rect); |
383 } | 383 } |
384 | 384 |
| 385 void RenderWidgetCompositor::SetNeedsForcedRedraw() { |
| 386 layer_tree_host_->SetNextCommitForcesRedraw(); |
| 387 setNeedsRedraw(); |
| 388 } |
| 389 |
385 void RenderWidgetCompositor::SetLatencyInfo( | 390 void RenderWidgetCompositor::SetLatencyInfo( |
386 const ui::LatencyInfo& latency_info) { | 391 const ui::LatencyInfo& latency_info) { |
387 layer_tree_host_->SetLatencyInfo(latency_info); | 392 layer_tree_host_->SetLatencyInfo(latency_info); |
388 } | 393 } |
389 | 394 |
390 int RenderWidgetCompositor::GetLayerTreeId() const { | 395 int RenderWidgetCompositor::GetLayerTreeId() const { |
391 return layer_tree_host_->id(); | 396 return layer_tree_host_->id(); |
392 } | 397 } |
393 | 398 |
394 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { | 399 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 if (!suppress_schedule_composite_) | 640 if (!suppress_schedule_composite_) |
636 widget_->scheduleComposite(); | 641 widget_->scheduleComposite(); |
637 } | 642 } |
638 | 643 |
639 scoped_refptr<cc::ContextProvider> | 644 scoped_refptr<cc::ContextProvider> |
640 RenderWidgetCompositor::OffscreenContextProvider() { | 645 RenderWidgetCompositor::OffscreenContextProvider() { |
641 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); | 646 return RenderThreadImpl::current()->OffscreenCompositorContextProvider(); |
642 } | 647 } |
643 | 648 |
644 } // namespace content | 649 } // namespace content |
OLD | NEW |