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

Side by Side Diff: ui/compositor/layer.cc

Issue 876863002: Record layer name when recording paint event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 11 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 | « no previous file | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/layer.h" 5 #include "ui/compositor/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 delegate_->OnDelegatedFrameDamage(damage_rect_in_dip); 722 delegate_->OnDelegatedFrameDamage(damage_rect_in_dip);
723 } 723 }
724 724
725 void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) { 725 void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) {
726 cc_layer_->RequestCopyOfOutput(request.Pass()); 726 cc_layer_->RequestCopyOfOutput(request.Pass());
727 } 727 }
728 728
729 void Layer::PaintContents(SkCanvas* sk_canvas, 729 void Layer::PaintContents(SkCanvas* sk_canvas,
730 const gfx::Rect& clip, 730 const gfx::Rect& clip,
731 ContentLayerClient::GraphicsContextStatus gc_status) { 731 ContentLayerClient::GraphicsContextStatus gc_status) {
732 TRACE_EVENT0("ui", "Layer::PaintContents"); 732 TRACE_EVENT1("ui", "Layer::PaintContents", "name", name_);
733 scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling( 733 scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling(
734 sk_canvas, device_scale_factor_)); 734 sk_canvas, device_scale_factor_));
735 if (delegate_) 735 if (delegate_)
736 delegate_->OnPaintLayer(canvas.get()); 736 delegate_->OnPaintLayer(canvas.get());
737 } 737 }
738 738
739 scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList( 739 scoped_refptr<cc::DisplayItemList> Layer::PaintContentsToDisplayList(
740 const gfx::Rect& clip, 740 const gfx::Rect& clip,
741 ContentLayerClient::GraphicsContextStatus gc_status) { 741 ContentLayerClient::GraphicsContextStatus gc_status) {
742 NOTIMPLEMENTED(); 742 NOTIMPLEMENTED();
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 children_.end(), 1066 children_.end(),
1067 std::bind2nd(std::mem_fun(&Layer::RemoveAnimatorsInTreeFromCollection), 1067 std::bind2nd(std::mem_fun(&Layer::RemoveAnimatorsInTreeFromCollection),
1068 collection)); 1068 collection));
1069 } 1069 }
1070 1070
1071 bool Layer::IsAnimating() const { 1071 bool Layer::IsAnimating() const {
1072 return animator_.get() && animator_->is_animating(); 1072 return animator_.get() && animator_->is_animating();
1073 } 1073 }
1074 1074
1075 } // namespace ui 1075 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698