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

Side by Side Diff: cc/layers/layer.cc

Issue 16903005: Add layer name into frame viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get debug name on demand Created 7 years, 5 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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 base::Passed(&result))); 668 base::Passed(&result)));
669 } 669 }
670 670
671 void Layer::PushPropertiesTo(LayerImpl* layer) { 671 void Layer::PushPropertiesTo(LayerImpl* layer) {
672 layer->SetAnchorPoint(anchor_point_); 672 layer->SetAnchorPoint(anchor_point_);
673 layer->SetAnchorPointZ(anchor_point_z_); 673 layer->SetAnchorPointZ(anchor_point_z_);
674 layer->SetBackgroundColor(background_color_); 674 layer->SetBackgroundColor(background_color_);
675 layer->SetBounds(paint_properties_.bounds); 675 layer->SetBounds(paint_properties_.bounds);
676 layer->SetContentBounds(content_bounds()); 676 layer->SetContentBounds(content_bounds());
677 layer->SetContentsScale(contents_scale_x(), contents_scale_y()); 677 layer->SetContentsScale(contents_scale_x(), contents_scale_y());
678 layer->SetDebugName(debug_name_); 678 layer->SetDebugName(DebugName());
enne (OOO) 2013/07/03 17:40:43 How about only pulling the name when tracing is ac
qiankun 2013/07/04 04:34:04 OK.
679 layer->SetCompositingReasons(compositing_reasons_); 679 layer->SetCompositingReasons(compositing_reasons_);
680 layer->SetDoubleSided(double_sided_); 680 layer->SetDoubleSided(double_sided_);
681 layer->SetDrawCheckerboardForMissingTiles( 681 layer->SetDrawCheckerboardForMissingTiles(
682 draw_checkerboard_for_missing_tiles_); 682 draw_checkerboard_for_missing_tiles_);
683 layer->SetForceRenderSurface(force_render_surface_); 683 layer->SetForceRenderSurface(force_render_surface_);
684 layer->SetDrawsContent(DrawsContent()); 684 layer->SetDrawsContent(DrawsContent());
685 layer->SetFilters(filters()); 685 layer->SetFilters(filters());
686 layer->SetFilter(filter()); 686 layer->SetFilter(filter());
687 layer->SetBackgroundFilters(background_filters()); 687 layer->SetBackgroundFilters(background_filters());
688 layer->SetMasksToBounds(masks_to_bounds_); 688 layer->SetMasksToBounds(masks_to_bounds_);
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 887
888 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { 888 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const {
889 return layer_tree_host_->rendering_stats_instrumentation(); 889 return layer_tree_host_->rendering_stats_instrumentation();
890 } 890 }
891 891
892 bool Layer::SupportsLCDText() const { 892 bool Layer::SupportsLCDText() const {
893 return false; 893 return false;
894 } 894 }
895 895
896 } // namespace cc 896 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698