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

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: Address Enne's comments. Created 7 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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 26 matching lines...) Expand all
37 struct AnimationEvent; 37 struct AnimationEvent;
38 class CopyOutputRequest; 38 class CopyOutputRequest;
39 class LayerAnimationDelegate; 39 class LayerAnimationDelegate;
40 class LayerAnimationEventObserver; 40 class LayerAnimationEventObserver;
41 class LayerImpl; 41 class LayerImpl;
42 class LayerTreeHost; 42 class LayerTreeHost;
43 class LayerTreeImpl; 43 class LayerTreeImpl;
44 class PriorityCalculator; 44 class PriorityCalculator;
45 class RenderingStatsInstrumentation; 45 class RenderingStatsInstrumentation;
46 class ResourceUpdateQueue; 46 class ResourceUpdateQueue;
47 class ScrollbarLayer; 47 class ScrollbarLayerInterface;
48 struct AnimationEvent; 48 struct AnimationEvent;
49 49
50 // Base class for composited layers. Special layer types are derived from 50 // Base class for composited layers. Special layer types are derived from
51 // this class. 51 // this class.
52 class CC_EXPORT Layer : public base::RefCounted<Layer>, 52 class CC_EXPORT Layer : public base::RefCounted<Layer>,
53 public LayerAnimationValueObserver { 53 public LayerAnimationValueObserver {
54 public: 54 public:
55 enum LayerIdLabels { 55 enum LayerIdLabels {
56 INVALID_ID = -1, 56 INVALID_ID = -1,
57 }; 57 };
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 bool HasActiveAnimation() const; 341 bool HasActiveAnimation() const;
342 342
343 void AddLayerAnimationEventObserver( 343 void AddLayerAnimationEventObserver(
344 LayerAnimationEventObserver* animation_observer); 344 LayerAnimationEventObserver* animation_observer);
345 void RemoveLayerAnimationEventObserver( 345 void RemoveLayerAnimationEventObserver(
346 LayerAnimationEventObserver* animation_observer); 346 LayerAnimationEventObserver* animation_observer);
347 347
348 virtual Region VisibleContentOpaqueRegion() const; 348 virtual Region VisibleContentOpaqueRegion() const;
349 349
350 virtual ScrollbarLayer* ToScrollbarLayer(); 350 virtual ScrollbarLayerInterface* ToScrollbarLayer();
351 351
352 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const; 352 gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
353 353
354 // In impl-side painting, this returns true if this layer type is not 354 // In impl-side painting, this returns true if this layer type is not
355 // compatible with the main thread running freely, such as a double-buffered 355 // compatible with the main thread running freely, such as a double-buffered
356 // canvas that doesn't want to be triple-buffered across all three trees. 356 // canvas that doesn't want to be triple-buffered across all three trees.
357 virtual bool BlocksPendingCommit() const; 357 virtual bool BlocksPendingCommit() const;
358 // Returns true if anything in this tree blocksPendingCommit. 358 // Returns true if anything in this tree blocksPendingCommit.
359 bool BlocksPendingCommitRecursive() const; 359 bool BlocksPendingCommitRecursive() const;
360 360
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 DrawProperties<Layer, RenderSurface> draw_properties_; 521 DrawProperties<Layer, RenderSurface> draw_properties_;
522 522
523 PaintProperties paint_properties_; 523 PaintProperties paint_properties_;
524 524
525 DISALLOW_COPY_AND_ASSIGN(Layer); 525 DISALLOW_COPY_AND_ASSIGN(Layer);
526 }; 526 };
527 527
528 } // namespace cc 528 } // namespace cc
529 529
530 #endif // CC_LAYERS_LAYER_H_ 530 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/layer.cc » ('j') | cc/layers/scrollbar_layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698