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

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

Issue 18341009: Refactor cc scrollbar layers to separate solid-color vs desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows compile. Created 7 years, 3 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/cc.gyp ('k') | 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 30 matching lines...) Expand all
41 class Animation; 41 class Animation;
42 class AnimationDelegate; 42 class AnimationDelegate;
43 struct AnimationEvent; 43 struct AnimationEvent;
44 class CopyOutputRequest; 44 class CopyOutputRequest;
45 class LayerAnimationDelegate; 45 class LayerAnimationDelegate;
46 class LayerAnimationEventObserver; 46 class LayerAnimationEventObserver;
47 class LayerClient; 47 class LayerClient;
48 class LayerImpl; 48 class LayerImpl;
49 class LayerTreeHost; 49 class LayerTreeHost;
50 class LayerTreeImpl; 50 class LayerTreeImpl;
51 class PaintedScrollbarLayer;
52 class PriorityCalculator; 51 class PriorityCalculator;
53 class RenderingStatsInstrumentation; 52 class RenderingStatsInstrumentation;
54 class ResourceUpdateQueue; 53 class ResourceUpdateQueue;
54 class ScrollbarLayerInterface;
55 struct AnimationEvent; 55 struct AnimationEvent;
56 56
57 // Base class for composited layers. Special layer types are derived from 57 // Base class for composited layers. Special layer types are derived from
58 // this class. 58 // this class.
59 class CC_EXPORT Layer : public base::RefCounted<Layer>, 59 class CC_EXPORT Layer : public base::RefCounted<Layer>,
60 public LayerAnimationValueObserver { 60 public LayerAnimationValueObserver {
61 public: 61 public:
62 enum LayerIdLabels { 62 enum LayerIdLabels {
63 INVALID_ID = -1, 63 INVALID_ID = -1,
64 }; 64 };
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 bool HasActiveAnimation() const; 387 bool HasActiveAnimation() const;
388 388
389 void AddLayerAnimationEventObserver( 389 void AddLayerAnimationEventObserver(
390 LayerAnimationEventObserver* animation_observer); 390 LayerAnimationEventObserver* animation_observer);
391 void RemoveLayerAnimationEventObserver( 391 void RemoveLayerAnimationEventObserver(
392 LayerAnimationEventObserver* animation_observer); 392 LayerAnimationEventObserver* animation_observer);
393 393
394 virtual Region VisibleContentOpaqueRegion() const; 394 virtual Region VisibleContentOpaqueRegion() const;
395 395
396 virtual PaintedScrollbarLayer* ToScrollbarLayer(); 396 virtual ScrollbarLayerInterface* ToScrollbarLayer();
397 397
398 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; 398 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
399 399
400 virtual skia::RefPtr<SkPicture> GetPicture() const; 400 virtual skia::RefPtr<SkPicture> GetPicture() const;
401 401
402 virtual bool CanClipSelf() const; 402 virtual bool CanClipSelf() const;
403 403
404 // Constructs a LayerImpl of the correct runtime type for this Layer type. 404 // Constructs a LayerImpl of the correct runtime type for this Layer type.
405 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl); 405 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
406 406
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 DrawProperties<Layer, RenderSurface> draw_properties_; 582 DrawProperties<Layer, RenderSurface> draw_properties_;
583 583
584 PaintProperties paint_properties_; 584 PaintProperties paint_properties_;
585 585
586 DISALLOW_COPY_AND_ASSIGN(Layer); 586 DISALLOW_COPY_AND_ASSIGN(Layer);
587 }; 587 };
588 588
589 } // namespace cc 589 } // namespace cc
590 590
591 #endif // CC_LAYERS_LAYER_H_ 591 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698