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

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: merge with origin/master Created 5 years, 1 month 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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 return false; 1474 return false;
1475 } 1475 }
1476 1476
1477 bool Layer::IsSuitableForGpuRasterization() const { 1477 bool Layer::IsSuitableForGpuRasterization() const {
1478 return true; 1478 return true;
1479 } 1479 }
1480 1480
1481 scoped_refptr<base::trace_event::ConvertableToTraceFormat> 1481 scoped_refptr<base::trace_event::ConvertableToTraceFormat>
1482 Layer::TakeDebugInfo() { 1482 Layer::TakeDebugInfo() {
1483 if (client_) 1483 if (client_)
1484 return client_->TakeDebugInfo(); 1484 return client_->TakeDebugInfo(this);
1485 else 1485 else
1486 return nullptr; 1486 return nullptr;
1487 } 1487 }
1488 1488
1489 void Layer::SetHasRenderSurface(bool has_render_surface) { 1489 void Layer::SetHasRenderSurface(bool has_render_surface) {
1490 if (has_render_surface_ == has_render_surface) 1490 if (has_render_surface_ == has_render_surface)
1491 return; 1491 return;
1492 has_render_surface_ = has_render_surface; 1492 has_render_surface_ = has_render_surface;
1493 // We do not need SetNeedsCommit here, since this is only ever called 1493 // We do not need SetNeedsCommit here, since this is only ever called
1494 // during a commit, from CalculateDrawProperties. 1494 // during a commit, from CalculateDrawProperties.
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1776 this, layer_tree_host_->property_trees()->transform_tree); 1776 this, layer_tree_host_->property_trees()->transform_tree);
1777 } 1777 }
1778 1778
1779 gfx::Transform Layer::screen_space_transform() const { 1779 gfx::Transform Layer::screen_space_transform() const {
1780 DCHECK_NE(transform_tree_index_, -1); 1780 DCHECK_NE(transform_tree_index_, -1);
1781 return ScreenSpaceTransformFromPropertyTrees( 1781 return ScreenSpaceTransformFromPropertyTrees(
1782 this, layer_tree_host_->property_trees()->transform_tree); 1782 this, layer_tree_host_->property_trees()->transform_tree);
1783 } 1783 }
1784 1784
1785 } // namespace cc 1785 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698