Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_PICTURE_LAYER_IMPL_H_ | 5 #ifndef CC_PICTURE_LAYER_IMPL_H_ |
| 6 #define CC_PICTURE_LAYER_IMPL_H_ | 6 #define CC_PICTURE_LAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
| 9 #include "cc/picture_pile.h" | 9 #include "cc/picture_pile.h" |
| 10 | 10 |
| 11 namespace cc { | 11 namespace cc { |
| 12 | 12 |
| 13 struct AppendQuadsData; | |
| 14 class QuadSink; | |
| 15 | |
| 13 class CC_EXPORT PictureLayerImpl : public LayerImpl { | 16 class CC_EXPORT PictureLayerImpl : public LayerImpl { |
| 14 public: | 17 public: |
| 15 static scoped_ptr<PictureLayerImpl> create(int id) | 18 static scoped_ptr<PictureLayerImpl> create(int id) |
| 16 { | 19 { |
| 17 return make_scoped_ptr(new PictureLayerImpl(id)); | 20 return make_scoped_ptr(new PictureLayerImpl(id)); |
| 18 } | 21 } |
| 19 virtual ~PictureLayerImpl(); | 22 virtual ~PictureLayerImpl(); |
| 20 | 23 |
| 24 // LayerImpl overrides | |
|
nduca
2012/11/09 19:34:51
overrides.
| |
| 25 virtual const char* layerTypeAsString() const OVERRIDE; | |
| 26 virtual void appendQuads(QuadSink&, AppendQuadsData&) OVERRIDE; | |
| 27 virtual void dumpLayerProperties(std::string*, int indent) const OVERRIDE; | |
| 28 | |
| 21 protected: | 29 protected: |
| 22 PictureLayerImpl(int id); | 30 PictureLayerImpl(int id); |
| 23 | 31 |
| 24 PicturePile pile_; | 32 PicturePile pile_; |
| 25 | 33 |
| 26 friend class PictureLayer; | 34 friend class PictureLayer; |
| 27 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); | 35 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); |
| 28 }; | 36 }; |
| 29 | 37 |
| 30 } | 38 } |
| 31 | 39 |
| 32 #endif // CC_PICTURE_LAYER_IMPL_H_ | 40 #endif // CC_PICTURE_LAYER_IMPL_H_ |
| OLD | NEW |