Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and merge. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { 325 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) {
326 layer_tree_host_->CollectRenderingStats(stats); 326 layer_tree_host_->CollectRenderingStats(stats);
327 } 327 }
328 328
329 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { 329 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() {
330 return layer_tree_host_->CapturePicture(); 330 return layer_tree_host_->CapturePicture();
331 } 331 }
332 332
333 void RenderWidgetCompositor::UpdateTopControlsState(bool enable_hiding, 333 void RenderWidgetCompositor::UpdateTopControlsState(
334 bool enable_showing, 334 cc::TopControlsState constraints,
335 bool animate) { 335 cc::TopControlsState current,
336 layer_tree_host_->UpdateTopControlsState(enable_hiding, 336 bool animate) {
337 enable_showing, 337 layer_tree_host_->UpdateTopControlsState(constraints,
338 current,
338 animate); 339 animate);
339 } 340 }
340 341
341 void RenderWidgetCompositor::SetOverdrawBottomHeight( 342 void RenderWidgetCompositor::SetOverdrawBottomHeight(
342 float overdraw_bottom_height) { 343 float overdraw_bottom_height) {
343 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); 344 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height);
344 } 345 }
345 346
346 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { 347 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) {
347 layer_tree_host_->SetNeedsRedrawRect(damage_rect); 348 layer_tree_host_->SetNeedsRedrawRect(damage_rect);
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 571 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
571 } 572 }
572 573
573 scoped_refptr<cc::ContextProvider> 574 scoped_refptr<cc::ContextProvider>
574 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 575 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
575 return RenderThreadImpl::current()-> 576 return RenderThreadImpl::current()->
576 OffscreenContextProviderForCompositorThread(); 577 OffscreenContextProviderForCompositorThread();
577 } 578 }
578 579
579 } // namespace content 580 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698