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

Side by Side Diff: trunk/src/cc/layers/layer.h

Issue 16146007: Revert 202580 "Add CompositingReasons to compositor layer types." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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 | « trunk/src/cc/layers/compositing_reasons.h ('k') | trunk/src/cc/layers/layer.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 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 #ifndef CC_LAYERS_LAYER_H_ 5 #ifndef CC_LAYERS_LAYER_H_
6 #define CC_LAYERS_LAYER_H_ 6 #define CC_LAYERS_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/observer_list.h" 12 #include "base/observer_list.h"
13 #include "cc/animation/layer_animation_controller.h" 13 #include "cc/animation/layer_animation_controller.h"
14 #include "cc/animation/layer_animation_value_observer.h" 14 #include "cc/animation/layer_animation_value_observer.h"
15 #include "cc/base/cc_export.h" 15 #include "cc/base/cc_export.h"
16 #include "cc/base/region.h" 16 #include "cc/base/region.h"
17 #include "cc/base/scoped_ptr_vector.h" 17 #include "cc/base/scoped_ptr_vector.h"
18 #include "cc/layers/compositing_reasons.h"
19 #include "cc/layers/draw_properties.h" 18 #include "cc/layers/draw_properties.h"
20 #include "cc/layers/layer_lists.h" 19 #include "cc/layers/layer_lists.h"
21 #include "cc/layers/layer_position_constraint.h" 20 #include "cc/layers/layer_position_constraint.h"
22 #include "cc/layers/paint_properties.h" 21 #include "cc/layers/paint_properties.h"
23 #include "cc/layers/render_surface.h" 22 #include "cc/layers/render_surface.h"
24 #include "cc/trees/occlusion_tracker.h" 23 #include "cc/trees/occlusion_tracker.h"
25 #include "skia/ext/refptr.h" 24 #include "skia/ext/refptr.h"
26 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h" 25 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations .h"
27 #include "third_party/skia/include/core/SkColor.h" 26 #include "third_party/skia/include/core/SkColor.h"
28 #include "third_party/skia/include/core/SkImageFilter.h" 27 #include "third_party/skia/include/core/SkImageFilter.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 virtual bool DrawsContent() const; 277 virtual bool DrawsContent() const;
279 virtual void SavePaintProperties(); 278 virtual void SavePaintProperties();
280 virtual void Update(ResourceUpdateQueue* queue, 279 virtual void Update(ResourceUpdateQueue* queue,
281 const OcclusionTracker* occlusion, 280 const OcclusionTracker* occlusion,
282 RenderingStats* stats) {} 281 RenderingStats* stats) {}
283 virtual bool NeedMoreUpdates(); 282 virtual bool NeedMoreUpdates();
284 virtual void SetIsMask(bool is_mask) {} 283 virtual void SetIsMask(bool is_mask) {}
285 virtual void ReduceMemoryUsage() {} 284 virtual void ReduceMemoryUsage() {}
286 285
287 void SetDebugName(const std::string& debug_name); 286 void SetDebugName(const std::string& debug_name);
288 void SetCompositingReasons(CompositingReasons reasons);
289 287
290 virtual void PushPropertiesTo(LayerImpl* layer); 288 virtual void PushPropertiesTo(LayerImpl* layer);
291 289
292 void CreateRenderSurface(); 290 void CreateRenderSurface();
293 void ClearRenderSurface(); 291 void ClearRenderSurface();
294 292
295 // The contents scale converts from logical, non-page-scaled pixels to target 293 // The contents scale converts from logical, non-page-scaled pixels to target
296 // pixels. The contents scale is 1 for the root layer as it is already in 294 // pixels. The contents scale is 1 for the root layer as it is already in
297 // physical pixels. By default contents scale is forced to be 1 except for 295 // physical pixels. By default contents scale is forced to be 1 except for
298 // subclasses of ContentsScalingLayer. 296 // subclasses of ContentsScalingLayer.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 gfx::Vector2d max_scroll_offset_; 444 gfx::Vector2d max_scroll_offset_;
447 bool scrollable_; 445 bool scrollable_;
448 bool should_scroll_on_main_thread_; 446 bool should_scroll_on_main_thread_;
449 bool have_wheel_event_handlers_; 447 bool have_wheel_event_handlers_;
450 Region non_fast_scrollable_region_; 448 Region non_fast_scrollable_region_;
451 Region touch_event_handler_region_; 449 Region touch_event_handler_region_;
452 gfx::PointF position_; 450 gfx::PointF position_;
453 gfx::PointF anchor_point_; 451 gfx::PointF anchor_point_;
454 SkColor background_color_; 452 SkColor background_color_;
455 std::string debug_name_; 453 std::string debug_name_;
456 CompositingReasons compositing_reasons_;
457 float opacity_; 454 float opacity_;
458 skia::RefPtr<SkImageFilter> filter_; 455 skia::RefPtr<SkImageFilter> filter_;
459 WebKit::WebFilterOperations filters_; 456 WebKit::WebFilterOperations filters_;
460 WebKit::WebFilterOperations background_filters_; 457 WebKit::WebFilterOperations background_filters_;
461 float anchor_point_z_; 458 float anchor_point_z_;
462 bool is_container_for_fixed_position_layers_; 459 bool is_container_for_fixed_position_layers_;
463 LayerPositionConstraint position_constraint_; 460 LayerPositionConstraint position_constraint_;
464 bool is_drawable_; 461 bool is_drawable_;
465 bool masks_to_bounds_; 462 bool masks_to_bounds_;
466 bool contents_opaque_; 463 bool contents_opaque_;
(...skipping 19 matching lines...) Expand all
486 DrawProperties<Layer, RenderSurface> draw_properties_; 483 DrawProperties<Layer, RenderSurface> draw_properties_;
487 484
488 PaintProperties paint_properties_; 485 PaintProperties paint_properties_;
489 486
490 DISALLOW_COPY_AND_ASSIGN(Layer); 487 DISALLOW_COPY_AND_ASSIGN(Layer);
491 }; 488 };
492 489
493 } // namespace cc 490 } // namespace cc
494 491
495 #endif // CC_LAYERS_LAYER_H_ 492 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « trunk/src/cc/layers/compositing_reasons.h ('k') | trunk/src/cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698