| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 789 void RenderWidgetCompositor::ApplyViewportDeltas( | 789 void RenderWidgetCompositor::ApplyViewportDeltas( | 
| 790     const gfx::Vector2d& scroll_delta, | 790     const gfx::Vector2d& scroll_delta, | 
| 791     float page_scale, | 791     float page_scale, | 
| 792     float top_controls_delta) { | 792     float top_controls_delta) { | 
| 793   widget_->webwidget()->applyViewportDeltas( | 793   widget_->webwidget()->applyViewportDeltas( | 
| 794       scroll_delta, | 794       scroll_delta, | 
| 795       page_scale, | 795       page_scale, | 
| 796       top_controls_delta); | 796       top_controls_delta); | 
| 797 } | 797 } | 
| 798 | 798 | 
| 799 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface( | 799 void RenderWidgetCompositor::RequestNewOutputSurface(bool fallback) { | 
| 800     bool fallback) { | 800   layer_tree_host_->SetOutputSurface(widget_->CreateOutputSurface(fallback)); | 
| 801   return widget_->CreateOutputSurface(fallback); |  | 
| 802 } | 801 } | 
| 803 | 802 | 
| 804 void RenderWidgetCompositor::DidInitializeOutputSurface() { | 803 void RenderWidgetCompositor::DidInitializeOutputSurface() { | 
| 805 } | 804 } | 
| 806 | 805 | 
| 807 void RenderWidgetCompositor::WillCommit() { | 806 void RenderWidgetCompositor::WillCommit() { | 
| 808   widget_->InstrumentWillComposite(); | 807   widget_->InstrumentWillComposite(); | 
| 809 } | 808 } | 
| 810 | 809 | 
| 811 void RenderWidgetCompositor::DidCommit() { | 810 void RenderWidgetCompositor::DidCommit() { | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 849   widget_->OnSwapBuffersAborted(); | 848   widget_->OnSwapBuffersAborted(); | 
| 850 } | 849 } | 
| 851 | 850 | 
| 852 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 851 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 
| 853   cc::ContextProvider* provider = | 852   cc::ContextProvider* provider = | 
| 854       RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 853       RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); | 
| 855   provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 854   provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 
| 856 } | 855 } | 
| 857 | 856 | 
| 858 }  // namespace content | 857 }  // namespace content | 
| OLD | NEW | 
|---|