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

Side by Side Diff: cc/layer_impl.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/layer_animation_controller.h ('k') | cc/layer_iterator.h » ('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 CCLayerImpl_h 5 #ifndef CCLayerImpl_h
6 #define CCLayerImpl_h 6 #define CCLayerImpl_h
7 7
8 #include <string>
9
8 #include "FloatSize.h" 10 #include "FloatSize.h"
9 #include "Region.h" 11 #include "Region.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "cc/cc_export.h"
12 #include "cc/input_handler.h" 15 #include "cc/input_handler.h"
13 #include "cc/layer_animation_controller.h" 16 #include "cc/layer_animation_controller.h"
14 #include "cc/render_pass.h" 17 #include "cc/render_pass.h"
15 #include "cc/render_surface_impl.h" 18 #include "cc/render_surface_impl.h"
16 #include "cc/resource_provider.h" 19 #include "cc/resource_provider.h"
17 #include "cc/scoped_ptr_vector.h" 20 #include "cc/scoped_ptr_vector.h"
18 #include "cc/shared_quad_state.h" 21 #include "cc/shared_quad_state.h"
19 #include "third_party/skia/include/core/SkColor.h" 22 #include "third_party/skia/include/core/SkColor.h"
20 #include "ui/gfx/rect.h" 23 #include "ui/gfx/rect.h"
21 #include "ui/gfx/rect_f.h" 24 #include "ui/gfx/rect_f.h"
22 #include <public/WebFilterOperations.h> 25 #include <public/WebFilterOperations.h>
23 #include <public/WebTransformationMatrix.h> 26 #include <public/WebTransformationMatrix.h>
24 #include <string>
25 27
26 namespace cc { 28 namespace cc {
27 29
28 class LayerSorter; 30 class LayerSorter;
29 class LayerTreeHostImpl; 31 class LayerTreeHostImpl;
30 class QuadSink; 32 class QuadSink;
31 class Renderer; 33 class Renderer;
32 class ScrollbarAnimationController; 34 class ScrollbarAnimationController;
33 class ScrollbarLayerImpl; 35 class ScrollbarLayerImpl;
34 class Layer; 36 class Layer;
35 37
36 struct AppendQuadsData; 38 struct AppendQuadsData;
37 39
38 class LayerImpl : public LayerAnimationControllerClient { 40 class CC_EXPORT LayerImpl : public LayerAnimationControllerClient {
39 public: 41 public:
40 static scoped_ptr<LayerImpl> create(int id) 42 static scoped_ptr<LayerImpl> create(int id)
41 { 43 {
42 return make_scoped_ptr(new LayerImpl(id)); 44 return make_scoped_ptr(new LayerImpl(id));
43 } 45 }
44 46
45 virtual ~LayerImpl(); 47 virtual ~LayerImpl();
46 48
47 // LayerAnimationControllerClient implementation. 49 // LayerAnimationControllerClient implementation.
48 virtual int id() const OVERRIDE; 50 virtual int id() const OVERRIDE;
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // Rect indicating what was repainted/updated during update. 402 // Rect indicating what was repainted/updated during update.
401 // Note that plugin layers bypass this and leave it empty. 403 // Note that plugin layers bypass this and leave it empty.
402 // Uses layer's content space. 404 // Uses layer's content space.
403 gfx::RectF m_updateRect; 405 gfx::RectF m_updateRect;
404 406
405 // Manages animations for this layer. 407 // Manages animations for this layer.
406 scoped_ptr<LayerAnimationController> m_layerAnimationController; 408 scoped_ptr<LayerAnimationController> m_layerAnimationController;
407 409
408 // Manages scrollbars for this layer 410 // Manages scrollbars for this layer
409 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController; 411 scoped_ptr<ScrollbarAnimationController> m_scrollbarAnimationController;
412
413 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
410 }; 414 };
411 415
412 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*> ::iterator end, LayerSorter*); 416 void sortLayers(std::vector<LayerImpl*>::iterator first, std::vector<LayerImpl*> ::iterator end, LayerSorter*);
413 417
414 } 418 }
415 419
416 #endif // CCLayerImpl_h 420 #endif // CCLayerImpl_h
OLDNEW
« no previous file with comments | « cc/layer_animation_controller.h ('k') | cc/layer_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698