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

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

Issue 202523002: cc: Replace Region with SimpleEnclosedRegion for occlusion tracking (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpleregion: . Created 6 years, 4 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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class LayerAnimationDelegate; 53 class LayerAnimationDelegate;
54 class LayerAnimationEventObserver; 54 class LayerAnimationEventObserver;
55 class LayerClient; 55 class LayerClient;
56 class LayerImpl; 56 class LayerImpl;
57 class LayerTreeHost; 57 class LayerTreeHost;
58 class LayerTreeImpl; 58 class LayerTreeImpl;
59 class PriorityCalculator; 59 class PriorityCalculator;
60 class RenderingStatsInstrumentation; 60 class RenderingStatsInstrumentation;
61 class ResourceUpdateQueue; 61 class ResourceUpdateQueue;
62 class ScrollbarLayerInterface; 62 class ScrollbarLayerInterface;
63 class SimpleEnclosedRegion;
63 struct AnimationEvent; 64 struct AnimationEvent;
64 template <typename LayerType> 65 template <typename LayerType>
65 class OcclusionTracker; 66 class OcclusionTracker;
66 67
67 // Base class for composited layers. Special layer types are derived from 68 // Base class for composited layers. Special layer types are derived from
68 // this class. 69 // this class.
69 class CC_EXPORT Layer : public base::RefCounted<Layer>, 70 class CC_EXPORT Layer : public base::RefCounted<Layer>,
70 public LayerAnimationValueObserver, 71 public LayerAnimationValueObserver,
71 public LayerAnimationValueProvider { 72 public LayerAnimationValueProvider {
72 public: 73 public:
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 layer_animation_controller_->set_layer_animation_delegate(delegate); 411 layer_animation_controller_->set_layer_animation_delegate(delegate);
411 } 412 }
412 413
413 bool HasActiveAnimation() const; 414 bool HasActiveAnimation() const;
414 415
415 void AddLayerAnimationEventObserver( 416 void AddLayerAnimationEventObserver(
416 LayerAnimationEventObserver* animation_observer); 417 LayerAnimationEventObserver* animation_observer);
417 void RemoveLayerAnimationEventObserver( 418 void RemoveLayerAnimationEventObserver(
418 LayerAnimationEventObserver* animation_observer); 419 LayerAnimationEventObserver* animation_observer);
419 420
420 virtual Region VisibleContentOpaqueRegion() const; 421 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const;
421 422
422 virtual ScrollbarLayerInterface* ToScrollbarLayer(); 423 virtual ScrollbarLayerInterface* ToScrollbarLayer();
423 424
424 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; 425 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
425 426
426 virtual skia::RefPtr<SkPicture> GetPicture() const; 427 virtual skia::RefPtr<SkPicture> GetPicture() const;
427 428
428 // Constructs a LayerImpl of the correct runtime type for this Layer type. 429 // Constructs a LayerImpl of the correct runtime type for this Layer type.
429 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 430 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
430 431
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 DrawProperties<Layer> draw_properties_; 641 DrawProperties<Layer> draw_properties_;
641 642
642 PaintProperties paint_properties_; 643 PaintProperties paint_properties_;
643 644
644 DISALLOW_COPY_AND_ASSIGN(Layer); 645 DISALLOW_COPY_AND_ASSIGN(Layer);
645 }; 646 };
646 647
647 } // namespace cc 648 } // namespace cc
648 649
649 #endif // CC_LAYERS_LAYER_H_ 650 #endif // CC_LAYERS_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698