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

Side by Side Diff: cc/layer_tree_impl.cc

Issue 12149004: [cc] Show GPU memory usage and overage below FPS counter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_impl.h ('k') | cc/memory_history.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/layer_tree_impl.h" 5 #include "cc/layer_tree_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "cc/heads_up_display_layer_impl.h" 8 #include "cc/heads_up_display_layer_impl.h"
9 #include "cc/layer_tree_host_common.h" 9 #include "cc/layer_tree_host_common.h"
10 #include "cc/layer_tree_host_impl.h" 10 #include "cc/layer_tree_host_impl.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 } 367 }
368 368
369 FrameRateCounter* LayerTreeImpl::frame_rate_counter() const { 369 FrameRateCounter* LayerTreeImpl::frame_rate_counter() const {
370 return layer_tree_host_impl_->fpsCounter(); 370 return layer_tree_host_impl_->fpsCounter();
371 } 371 }
372 372
373 PaintTimeCounter* LayerTreeImpl::paint_time_counter() const { 373 PaintTimeCounter* LayerTreeImpl::paint_time_counter() const {
374 return layer_tree_host_impl_->paintTimeCounter(); 374 return layer_tree_host_impl_->paintTimeCounter();
375 } 375 }
376 376
377 MemoryHistory* LayerTreeImpl::memory_history() const {
378 return layer_tree_host_impl_->memoryHistory();
379 }
380
377 bool LayerTreeImpl::IsActiveTree() const { 381 bool LayerTreeImpl::IsActiveTree() const {
378 return layer_tree_host_impl_->activeTree() == this; 382 return layer_tree_host_impl_->activeTree() == this;
379 } 383 }
380 384
381 bool LayerTreeImpl::IsPendingTree() const { 385 bool LayerTreeImpl::IsPendingTree() const {
382 return layer_tree_host_impl_->pendingTree() == this; 386 return layer_tree_host_impl_->pendingTree() == this;
383 } 387 }
384 388
385 bool LayerTreeImpl::IsRecycleTree() const { 389 bool LayerTreeImpl::IsRecycleTree() const {
386 return layer_tree_host_impl_->recycleTree() == this; 390 return layer_tree_host_impl_->recycleTree() == this;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 442
439 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { 443 DebugRectHistory* LayerTreeImpl::debug_rect_history() const {
440 return layer_tree_host_impl_->debugRectHistory(); 444 return layer_tree_host_impl_->debugRectHistory();
441 } 445 }
442 446
443 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { 447 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const {
444 return layer_tree_host_impl_->animationRegistrar(); 448 return layer_tree_host_impl_->animationRegistrar();
445 } 449 }
446 450
447 } // namespace cc 451 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_impl.h ('k') | cc/memory_history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698