Skip to content

Commit

Permalink
cc: Remove Unused Code on LayerImpl
Browse files Browse the repository at this point in the history
Remove unused code.

TBR=enne

Bug: 822873
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: Icfce16105876d05efaa83b858fd4d39be3add686
Reviewed-on: https://chromium-review.googlesource.com/967157
Commit-Queue: weiliangc <weiliangc@chromium.org>
Reviewed-by: weiliangc <weiliangc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543882}
  • Loading branch information
weiliangc authored and Commit Bot committed Mar 17, 2018
1 parent 45a0c94 commit 2ac1c7c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions cc/layers/layer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,6 @@ float LayerImpl::Opacity() const {
return 1.f;
}

const gfx::Transform& LayerImpl::Transform() const {
return GetTransformTree().Node(transform_tree_index())->local;
}

void LayerImpl::SetElementId(ElementId element_id) {
if (element_id == element_id_)
return;
Expand Down
4 changes: 0 additions & 4 deletions cc/layers/layer_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ class CC_EXPORT LayerImpl {

bool is_clipped() const { return draw_properties_.is_clipped; }

void UpdatePropertyTreeScrollOffset();

LayerTreeImpl* layer_tree_impl() const { return layer_tree_impl_; }

void PopulateSharedQuadState(viz::SharedQuadState* state,
Expand Down Expand Up @@ -196,7 +194,6 @@ class CC_EXPORT LayerImpl {
bool contents_opaque() const { return contents_opaque_; }

float Opacity() const;
const gfx::Transform& Transform() const;

// Stable identifier for clients. See comment in cc/trees/element_id.h.
void SetElementId(ElementId element_id);
Expand Down Expand Up @@ -533,7 +530,6 @@ class CC_EXPORT LayerImpl {

gfx::PointF position_;

gfx::Rect clip_rect_in_target_space_;
int transform_tree_index_;
int effect_tree_index_;
int clip_tree_index_;
Expand Down

0 comments on commit 2ac1c7c

Please sign in to comment.