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

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

Issue 925353002: Make commit for swap promises do not set can_cancel_commit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and comment Created 5 years, 10 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_widget.cc » ('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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 } 516 }
517 517
518 int RenderWidgetCompositor::GetLayerTreeId() const { 518 int RenderWidgetCompositor::GetLayerTreeId() const {
519 return layer_tree_host_->id(); 519 return layer_tree_host_->id();
520 } 520 }
521 521
522 int RenderWidgetCompositor::GetSourceFrameNumber() const { 522 int RenderWidgetCompositor::GetSourceFrameNumber() const {
523 return layer_tree_host_->source_frame_number(); 523 return layer_tree_host_->source_frame_number();
524 } 524 }
525 525
526 void RenderWidgetCompositor::SetNeedsUpdateLayers() {
527 layer_tree_host_->SetNeedsUpdateLayers();
528 }
529
526 void RenderWidgetCompositor::SetNeedsCommit() { 530 void RenderWidgetCompositor::SetNeedsCommit() {
527 layer_tree_host_->SetNeedsCommit(); 531 layer_tree_host_->SetNeedsCommit();
528 } 532 }
529 533
530 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() { 534 void RenderWidgetCompositor::NotifyInputThrottledUntilCommit() {
531 layer_tree_host_->NotifyInputThrottledUntilCommit(); 535 layer_tree_host_->NotifyInputThrottledUntilCommit();
532 } 536 }
533 537
534 const cc::Layer* RenderWidgetCompositor::GetRootLayer() const { 538 const cc::Layer* RenderWidgetCompositor::GetRootLayer() const {
535 return layer_tree_host_->root_layer(); 539 return layer_tree_host_->root_layer();
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 widget_->OnSwapBuffersAborted(); 893 widget_->OnSwapBuffersAborted();
890 } 894 }
891 895
892 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 896 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
893 cc::ContextProvider* provider = 897 cc::ContextProvider* provider =
894 compositor_deps_->GetSharedMainThreadContextProvider(); 898 compositor_deps_->GetSharedMainThreadContextProvider();
895 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 899 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
896 } 900 }
897 901
898 } // namespace content 902 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698