| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 530 |
| 531 void RenderWidgetCompositor::Layout() { | 531 void RenderWidgetCompositor::Layout() { |
| 532 widget_->webwidget()->layout(); | 532 widget_->webwidget()->layout(); |
| 533 } | 533 } |
| 534 | 534 |
| 535 void RenderWidgetCompositor::ApplyScrollAndScale(gfx::Vector2d scroll_delta, | 535 void RenderWidgetCompositor::ApplyScrollAndScale(gfx::Vector2d scroll_delta, |
| 536 float page_scale) { | 536 float page_scale) { |
| 537 widget_->webwidget()->applyScrollAndScale(scroll_delta, page_scale); | 537 widget_->webwidget()->applyScrollAndScale(scroll_delta, page_scale); |
| 538 } | 538 } |
| 539 | 539 |
| 540 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface() { | 540 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface( |
| 541 return widget_->CreateOutputSurface(); | 541 bool fallback) { |
| 542 return widget_->CreateOutputSurface(fallback); |
| 542 } | 543 } |
| 543 | 544 |
| 544 void RenderWidgetCompositor::DidInitializeOutputSurface(bool success) { | 545 void RenderWidgetCompositor::DidInitializeOutputSurface(bool success) { |
| 545 if (!success) | 546 if (!success) |
| 546 widget_->webwidget()->didExitCompositingMode(); | 547 widget_->webwidget()->didExitCompositingMode(); |
| 547 } | 548 } |
| 548 | 549 |
| 549 void RenderWidgetCompositor::WillCommit() { | 550 void RenderWidgetCompositor::WillCommit() { |
| 550 widget_->InstrumentWillComposite(); | 551 widget_->InstrumentWillComposite(); |
| 551 } | 552 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 573 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 574 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
| 574 } | 575 } |
| 575 | 576 |
| 576 scoped_refptr<cc::ContextProvider> | 577 scoped_refptr<cc::ContextProvider> |
| 577 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 578 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
| 578 return RenderThreadImpl::current()-> | 579 return RenderThreadImpl::current()-> |
| 579 OffscreenContextProviderForCompositorThread(); | 580 OffscreenContextProviderForCompositorThread(); |
| 580 } | 581 } |
| 581 | 582 |
| 582 } // namespace content | 583 } // namespace content |
| OLD | NEW |