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

Side by Side Diff: cc/layers/layer_impl.h

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/layers/draw_properties.h ('k') | cc/layers/layer_impl.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 // The following are shortcut accessors to get various information from 317 // The following are shortcut accessors to get various information from
318 // draw_properties_ 318 // draw_properties_
319 const gfx::Transform& draw_transform() const { 319 const gfx::Transform& draw_transform() const {
320 return draw_properties_.target_space_transform; 320 return draw_properties_.target_space_transform;
321 } 321 }
322 const gfx::Transform& screen_space_transform() const { 322 const gfx::Transform& screen_space_transform() const {
323 return draw_properties_.screen_space_transform; 323 return draw_properties_.screen_space_transform;
324 } 324 }
325 float draw_opacity() const { return draw_properties_.opacity; } 325 float draw_opacity() const { return draw_properties_.opacity; }
326 SkXfermode::Mode draw_blend_mode() const {
327 return draw_properties_.blend_mode;
328 }
326 bool draw_opacity_is_animating() const { 329 bool draw_opacity_is_animating() const {
327 return draw_properties_.opacity_is_animating; 330 return draw_properties_.opacity_is_animating;
328 } 331 }
329 bool draw_transform_is_animating() const { 332 bool draw_transform_is_animating() const {
330 return draw_properties_.target_space_transform_is_animating; 333 return draw_properties_.target_space_transform_is_animating;
331 } 334 }
332 bool screen_space_transform_is_animating() const { 335 bool screen_space_transform_is_animating() const {
333 return draw_properties_.screen_space_transform_is_animating; 336 return draw_properties_.screen_space_transform_is_animating;
334 } 337 }
335 bool screen_space_opacity_is_animating() const { 338 bool screen_space_opacity_is_animating() const {
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 DrawProperties<LayerImpl> draw_properties_; 721 DrawProperties<LayerImpl> draw_properties_;
719 722
720 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 723 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
721 724
722 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 725 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
723 }; 726 };
724 727
725 } // namespace cc 728 } // namespace cc
726 729
727 #endif // CC_LAYERS_LAYER_IMPL_H_ 730 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/draw_properties.h ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698