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

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

Issue 128263006: Remove all traces of compositing reasons from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/layer.cc ('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
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "cc/animation/layer_animation_controller.h" 14 #include "cc/animation/layer_animation_controller.h"
15 #include "cc/animation/layer_animation_value_observer.h" 15 #include "cc/animation/layer_animation_value_observer.h"
16 #include "cc/animation/layer_animation_value_provider.h" 16 #include "cc/animation/layer_animation_value_provider.h"
17 #include "cc/base/cc_export.h" 17 #include "cc/base/cc_export.h"
18 #include "cc/base/region.h" 18 #include "cc/base/region.h"
19 #include "cc/base/scoped_ptr_vector.h" 19 #include "cc/base/scoped_ptr_vector.h"
20 #include "cc/input/input_handler.h" 20 #include "cc/input/input_handler.h"
21 #include "cc/layers/compositing_reasons.h"
22 #include "cc/layers/draw_properties.h" 21 #include "cc/layers/draw_properties.h"
23 #include "cc/layers/layer_lists.h" 22 #include "cc/layers/layer_lists.h"
24 #include "cc/layers/layer_position_constraint.h" 23 #include "cc/layers/layer_position_constraint.h"
25 #include "cc/layers/render_surface_impl.h" 24 #include "cc/layers/render_surface_impl.h"
26 #include "cc/output/filter_operations.h" 25 #include "cc/output/filter_operations.h"
27 #include "cc/quads/render_pass.h" 26 #include "cc/quads/render_pass.h"
28 #include "cc/quads/shared_quad_state.h" 27 #include "cc/quads/shared_quad_state.h"
29 #include "cc/resources/resource_provider.h" 28 #include "cc/resources/resource_provider.h"
30 #include "skia/ext/refptr.h" 29 #include "skia/ext/refptr.h"
31 #include "third_party/skia/include/core/SkColor.h" 30 #include "third_party/skia/include/core/SkColor.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 269
271 void SetSublayerTransform(const gfx::Transform& sublayer_transform); 270 void SetSublayerTransform(const gfx::Transform& sublayer_transform);
272 const gfx::Transform& sublayer_transform() const { 271 const gfx::Transform& sublayer_transform() const {
273 return sublayer_transform_; 272 return sublayer_transform_;
274 } 273 }
275 274
276 // Debug layer name. 275 // Debug layer name.
277 void SetDebugName(const std::string& debug_name) { debug_name_ = debug_name; } 276 void SetDebugName(const std::string& debug_name) { debug_name_ = debug_name; }
278 std::string debug_name() const { return debug_name_; } 277 std::string debug_name() const { return debug_name_; }
279 278
280 void SetCompositingReasons(CompositingReasons reasons) {
281 compositing_reasons_ = reasons;
282 }
283
284 CompositingReasons compositing_reasons() const {
285 return compositing_reasons_;
286 }
287
288 bool ShowDebugBorders() const; 279 bool ShowDebugBorders() const;
289 280
290 // These invalidate the host's render surface layer list. The caller 281 // These invalidate the host's render surface layer list. The caller
291 // is responsible for calling set_needs_update_draw_properties on the tree 282 // is responsible for calling set_needs_update_draw_properties on the tree
292 // so that its list can be recreated. 283 // so that its list can be recreated.
293 void CreateRenderSurface(); 284 void CreateRenderSurface();
294 void ClearRenderSurface(); 285 void ClearRenderSurface();
295 286
296 DrawProperties<LayerImpl>& draw_properties() { 287 DrawProperties<LayerImpl>& draw_properties() {
297 return draw_properties_; 288 return draw_properties_;
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 gfx::Vector2d sent_scroll_delta_; 616 gfx::Vector2d sent_scroll_delta_;
626 gfx::Vector2d max_scroll_offset_; 617 gfx::Vector2d max_scroll_offset_;
627 gfx::Vector2dF last_scroll_offset_; 618 gfx::Vector2dF last_scroll_offset_;
628 619
629 // The global depth value of the center of the layer. This value is used 620 // The global depth value of the center of the layer. This value is used
630 // to sort layers from back to front. 621 // to sort layers from back to front.
631 float draw_depth_; 622 float draw_depth_;
632 623
633 // Debug layer name. 624 // Debug layer name.
634 std::string debug_name_; 625 std::string debug_name_;
635 CompositingReasons compositing_reasons_;
636 626
637 FilterOperations filters_; 627 FilterOperations filters_;
638 FilterOperations background_filters_; 628 FilterOperations background_filters_;
639 629
640 protected: 630 protected:
641 DrawMode current_draw_mode_; 631 DrawMode current_draw_mode_;
642 632
643 private: 633 private:
644 // Rect indicating what was repainted/updated during update. 634 // Rect indicating what was repainted/updated during update.
645 // Note that plugin layers bypass this and leave it empty. 635 // Note that plugin layers bypass this and leave it empty.
(...skipping 18 matching lines...) Expand all
664 DrawProperties<LayerImpl> draw_properties_; 654 DrawProperties<LayerImpl> draw_properties_;
665 655
666 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 656 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
667 657
668 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 658 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
669 }; 659 };
670 660
671 } // namespace cc 661 } // namespace cc
672 662
673 #endif // CC_LAYERS_LAYER_IMPL_H_ 663 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698