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

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

Issue 1991523002: cc : Track ids for which active opacity always wins on property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « cc/layers/layer.h ('k') | cc/layers/painted_scrollbar_layer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 } 498 }
499 499
500 bool Layer::HasPotentiallyRunningOpacityAnimation() const { 500 bool Layer::HasPotentiallyRunningOpacityAnimation() const {
501 return layer_tree_host_->HasPotentiallyRunningOpacityAnimation(this); 501 return layer_tree_host_->HasPotentiallyRunningOpacityAnimation(this);
502 } 502 }
503 503
504 bool Layer::OpacityCanAnimateOnImplThread() const { 504 bool Layer::OpacityCanAnimateOnImplThread() const {
505 return false; 505 return false;
506 } 506 }
507 507
508 bool Layer::AlwaysUseActiveTreeOpacity() const {
509 return false;
510 }
511
508 void Layer::SetBlendMode(SkXfermode::Mode blend_mode) { 512 void Layer::SetBlendMode(SkXfermode::Mode blend_mode) {
509 DCHECK(IsPropertyChangeAllowed()); 513 DCHECK(IsPropertyChangeAllowed());
510 if (blend_mode_ == blend_mode) 514 if (blend_mode_ == blend_mode)
511 return; 515 return;
512 516
513 // Allowing only blend modes that are defined in the CSS Compositing standard: 517 // Allowing only blend modes that are defined in the CSS Compositing standard:
514 // http://dev.w3.org/fxtf/compositing-1/#blending 518 // http://dev.w3.org/fxtf/compositing-1/#blending
515 switch (blend_mode) { 519 switch (blend_mode) {
516 case SkXfermode::kSrcOver_Mode: 520 case SkXfermode::kSrcOver_Mode:
517 case SkXfermode::kScreen_Mode: 521 case SkXfermode::kScreen_Mode:
(...skipping 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1786 ->data.num_copy_requests_in_subtree; 1790 ->data.num_copy_requests_in_subtree;
1787 } 1791 }
1788 1792
1789 gfx::Transform Layer::screen_space_transform() const { 1793 gfx::Transform Layer::screen_space_transform() const {
1790 DCHECK_NE(transform_tree_index_, -1); 1794 DCHECK_NE(transform_tree_index_, -1);
1791 return draw_property_utils::ScreenSpaceTransform( 1795 return draw_property_utils::ScreenSpaceTransform(
1792 this, layer_tree_host_->property_trees()->transform_tree); 1796 this, layer_tree_host_->property_trees()->transform_tree);
1793 } 1797 }
1794 1798
1795 } // namespace cc 1799 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/painted_scrollbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698