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

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

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 DCHECK_EQ(layer_tree_host_->source_frame_number(), 1743 DCHECK_EQ(layer_tree_host_->source_frame_number(),
1744 paint_properties_.source_frame_number) << 1744 paint_properties_.source_frame_number) <<
1745 "SavePaintProperties must be called for any layer that is painted."; 1745 "SavePaintProperties must be called for any layer that is painted.";
1746 return false; 1746 return false;
1747 } 1747 }
1748 1748
1749 bool Layer::IsSuitableForGpuRasterization() const { 1749 bool Layer::IsSuitableForGpuRasterization() const {
1750 return true; 1750 return true;
1751 } 1751 }
1752 1752
1753 scoped_refptr<base::trace_event::ConvertableToTraceFormat> 1753 scoped_ptr<base::trace_event::ConvertableToTraceFormat> Layer::TakeDebugInfo() {
1754 Layer::TakeDebugInfo() {
1755 if (client_) 1754 if (client_)
1756 return client_->TakeDebugInfo(this); 1755 return client_->TakeDebugInfo(this);
1757 else 1756 else
1758 return nullptr; 1757 return nullptr;
1759 } 1758 }
1760 1759
1761 void Layer::SetHasRenderSurface(bool has_render_surface) { 1760 void Layer::SetHasRenderSurface(bool has_render_surface) {
1762 if (has_render_surface_ == has_render_surface) 1761 if (has_render_surface_ == has_render_surface)
1763 return; 1762 return;
1764 has_render_surface_ = has_render_surface; 1763 has_render_surface_ = has_render_surface;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 this, layer_tree_host_->property_trees()->transform_tree); 2075 this, layer_tree_host_->property_trees()->transform_tree);
2077 } 2076 }
2078 2077
2079 gfx::Transform Layer::screen_space_transform() const { 2078 gfx::Transform Layer::screen_space_transform() const {
2080 DCHECK_NE(transform_tree_index_, -1); 2079 DCHECK_NE(transform_tree_index_, -1);
2081 return ScreenSpaceTransformFromPropertyTrees( 2080 return ScreenSpaceTransformFromPropertyTrees(
2082 this, layer_tree_host_->property_trees()->transform_tree); 2081 this, layer_tree_host_->property_trees()->transform_tree);
2083 } 2082 }
2084 2083
2085 } // namespace cc 2084 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_client.h » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698