| 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_PILE_H_ | 5 #ifndef CC_PICTURE_PILE_H_ |
| 6 #define CC_PICTURE_PILE_H_ | 6 #define CC_PICTURE_PILE_H_ |
| 7 | 7 |
| 8 #include <list> |
| 9 |
| 8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 9 #include "cc/cc_export.h" | 11 #include "cc/cc_export.h" |
| 10 #include "cc/picture.h" | 12 #include "cc/picture.h" |
| 11 #include "cc/region.h" | 13 #include "cc/region.h" |
| 12 #include "cc/scoped_ptr_vector.h" | 14 #include "cc/scoped_ptr_vector.h" |
| 13 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 14 #include "ui/gfx/size.h" | 16 #include "ui/gfx/size.h" |
| 15 | 17 |
| 16 namespace cc { | 18 namespace cc { |
| 17 class PicturePileImpl; | 19 class PicturePileImpl; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 // Invalidations are in layer space. | 33 // Invalidations are in layer space. |
| 32 void Update( | 34 void Update( |
| 33 ContentLayerClient* painter, | 35 ContentLayerClient* painter, |
| 34 const Region& invalidation, | 36 const Region& invalidation, |
| 35 RenderingStats& stats); | 37 RenderingStats& stats); |
| 36 | 38 |
| 37 // Update other with a shallow copy of this (main => compositor thread commit) | 39 // Update other with a shallow copy of this (main => compositor thread commit) |
| 38 void PushPropertiesTo(PicturePileImpl* other); | 40 void PushPropertiesTo(PicturePileImpl* other); |
| 39 | 41 |
| 40 private: | 42 private: |
| 41 std::vector<scoped_refptr<Picture> > pile_; | 43 friend class PicturePileImpl; |
| 44 |
| 45 void InvalidateRect(gfx::Rect invalidation); |
| 46 void ResetPile(ContentLayerClient* painter, RenderingStats& stats); |
| 47 |
| 48 typedef std::list<scoped_refptr<Picture> > Pile; |
| 49 Pile pile_; |
| 42 gfx::Size size_; | 50 gfx::Size size_; |
| 43 | 51 |
| 44 DISALLOW_COPY_AND_ASSIGN(PicturePile); | 52 DISALLOW_COPY_AND_ASSIGN(PicturePile); |
| 45 }; | 53 }; |
| 46 | 54 |
| 47 } // namespace cc | 55 } // namespace cc |
| 48 | 56 |
| 49 #endif // CC_PICTURE_PILE_H_ | 57 #endif // CC_PICTURE_PILE_H_ |
| OLD | NEW |