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

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

Issue 1419913002: Remove blink::WebLayerClient and WebGraphicsLayerDebugInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try making webcore_shared link with base to fix win dbg component Created 5 years, 2 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/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 return false; 1405 return false;
1406 } 1406 }
1407 1407
1408 bool Layer::IsSuitableForGpuRasterization() const { 1408 bool Layer::IsSuitableForGpuRasterization() const {
1409 return true; 1409 return true;
1410 } 1410 }
1411 1411
1412 scoped_refptr<base::trace_event::ConvertableToTraceFormat> 1412 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
1413 Layer::TakeDebugInfo() { 1413 Layer::TakeDebugInfo() {
1414 if (client_) 1414 if (client_)
1415 return client_->TakeDebugInfo(); 1415 return client_->TakeDebugInfo(this);
1416 else 1416 else
1417 return nullptr; 1417 return nullptr;
1418 } 1418 }
1419 1419
1420 void Layer::SetHasRenderSurface(bool has_render_surface) { 1420 void Layer::SetHasRenderSurface(bool has_render_surface) {
1421 if (has_render_surface_ == has_render_surface) 1421 if (has_render_surface_ == has_render_surface)
1422 return; 1422 return;
1423 has_render_surface_ = has_render_surface; 1423 has_render_surface_ = has_render_surface;
1424 // We do not need SetNeedsCommit here, since this is only ever called 1424 // We do not need SetNeedsCommit here, since this is only ever called
1425 // during a commit, from CalculateDrawProperties. 1425 // during a commit, from CalculateDrawProperties.
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 this, layer_tree_host_->property_trees()->transform_tree); 1707 this, layer_tree_host_->property_trees()->transform_tree);
1708 } 1708 }
1709 1709
1710 gfx::Transform Layer::screen_space_transform() const { 1710 gfx::Transform Layer::screen_space_transform() const {
1711 DCHECK_NE(transform_tree_index_, -1); 1711 DCHECK_NE(transform_tree_index_, -1);
1712 return ScreenSpaceTransformFromPropertyTrees( 1712 return ScreenSpaceTransformFromPropertyTrees(
1713 this, layer_tree_host_->property_trees()->transform_tree); 1713 this, layer_tree_host_->property_trees()->transform_tree);
1714 } 1714 }
1715 1715
1716 } // namespace cc 1716 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698