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

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, merge, address style nits. 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 327 }
328 328
329 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { 329 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) {
330 layer_tree_host_->CollectRenderingStats(stats); 330 layer_tree_host_->CollectRenderingStats(stats);
331 } 331 }
332 332
333 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { 333 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() {
334 return layer_tree_host_->CapturePicture(); 334 return layer_tree_host_->CapturePicture();
335 } 335 }
336 336
337 void RenderWidgetCompositor::UpdateTopControlsState(bool enable_hiding, 337 void RenderWidgetCompositor::UpdateTopControlsState(
338 bool enable_showing, 338 cc::TopControlsState constraints,
339 bool animate) { 339 cc::TopControlsState current,
340 layer_tree_host_->UpdateTopControlsState(enable_hiding, 340 bool animate) {
341 enable_showing, 341 layer_tree_host_->UpdateTopControlsState(constraints,
342 current,
342 animate); 343 animate);
343 } 344 }
344 345
345 void RenderWidgetCompositor::SetOverdrawBottomHeight( 346 void RenderWidgetCompositor::SetOverdrawBottomHeight(
346 float overdraw_bottom_height) { 347 float overdraw_bottom_height) {
347 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height); 348 layer_tree_host_->SetOverdrawBottomHeight(overdraw_bottom_height);
348 } 349 }
349 350
350 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) { 351 void RenderWidgetCompositor::SetNeedsRedrawRect(gfx::Rect damage_rect) {
351 layer_tree_host_->SetNeedsRedrawRect(damage_rect); 352 layer_tree_host_->SetNeedsRedrawRect(damage_rect);
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 565 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
565 } 566 }
566 567
567 scoped_refptr<cc::ContextProvider> 568 scoped_refptr<cc::ContextProvider>
568 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 569 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
569 return RenderThreadImpl::current()-> 570 return RenderThreadImpl::current()->
570 OffscreenContextProviderForCompositorThread(); 571 OffscreenContextProviderForCompositorThread();
571 } 572 }
572 573
573 } // namespace content 574 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698