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

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

Issue 312503006: Add trace event for addition/removal of GPU rasterization trigger (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comment Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | no next file » | 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 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 duration_sec * base::Time::kMicrosecondsPerSecond); 522 duration_sec * base::Time::kMicrosecondsPerSecond);
523 layer_tree_host_->StartPageScaleAnimation( 523 layer_tree_host_->StartPageScaleAnimation(
524 gfx::Vector2d(destination.x, destination.y), 524 gfx::Vector2d(destination.x, destination.y),
525 use_anchor, 525 use_anchor,
526 new_page_scale, 526 new_page_scale,
527 duration); 527 duration);
528 } 528 }
529 529
530 void RenderWidgetCompositor::heuristicsForGpuRasterizationUpdated( 530 void RenderWidgetCompositor::heuristicsForGpuRasterizationUpdated(
531 bool matches_heuristics) { 531 bool matches_heuristics) {
532 layer_tree_host_->set_has_gpu_rasterization_trigger(matches_heuristics); 532 layer_tree_host_->SetHasGpuRasterizationTrigger(matches_heuristics);
533 } 533 }
534 534
535 void RenderWidgetCompositor::setNeedsAnimate() { 535 void RenderWidgetCompositor::setNeedsAnimate() {
536 layer_tree_host_->SetNeedsAnimate(); 536 layer_tree_host_->SetNeedsAnimate();
537 } 537 }
538 538
539 bool RenderWidgetCompositor::commitRequested() const { 539 bool RenderWidgetCompositor::commitRequested() const {
540 return layer_tree_host_->CommitRequested(); 540 return layer_tree_host_->CommitRequested();
541 } 541 }
542 542
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 widget_->OnSwapBuffersAborted(); 704 widget_->OnSwapBuffersAborted();
705 } 705 }
706 706
707 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 707 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
708 cc::ContextProvider* provider = 708 cc::ContextProvider* provider =
709 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 709 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
710 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 710 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
711 } 711 }
712 712
713 } // namespace content 713 } // namespace content
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698