| 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_RESOURCES_PICTURE_H_ | 5 #ifndef CC_RESOURCES_PICTURE_H_ |
| 6 #define CC_RESOURCES_PICTURE_H_ | 6 #define CC_RESOURCES_PICTURE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 gfx::Point min_point_; | 111 gfx::Point min_point_; |
| 112 gfx::Point max_point_; | 112 gfx::Point max_point_; |
| 113 int current_x_; | 113 int current_x_; |
| 114 int current_y_; | 114 int current_y_; |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 void EmitTraceSnapshot(); | 117 void EmitTraceSnapshot(); |
| 118 void EmitTraceSnapshotAlias(Picture* original); | 118 void EmitTraceSnapshotAlias(Picture* original); |
| 119 | 119 |
| 120 bool WillPlayBackBitmaps() const { return picture_->willPlayBackBitmaps(); } |
| 121 |
| 120 private: | 122 private: |
| 121 explicit Picture(gfx::Rect layer_rect); | 123 explicit Picture(gfx::Rect layer_rect); |
| 122 // This constructor assumes SkPicture is already ref'd and transfers | 124 // This constructor assumes SkPicture is already ref'd and transfers |
| 123 // ownership to this picture. | 125 // ownership to this picture. |
| 124 Picture(const skia::RefPtr<SkPicture>&, | 126 Picture(const skia::RefPtr<SkPicture>&, |
| 125 gfx::Rect layer_rect, | 127 gfx::Rect layer_rect, |
| 126 gfx::Rect opaque_rect, | 128 gfx::Rect opaque_rect, |
| 127 const PixelRefMap& pixel_refs); | 129 const PixelRefMap& pixel_refs); |
| 128 // This constructor will call AdoptRef on the SkPicture. | 130 // This constructor will call AdoptRef on the SkPicture. |
| 129 Picture(SkPicture*, | 131 Picture(SkPicture*, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 149 AsTraceableRecordData() const; | 151 AsTraceableRecordData() const; |
| 150 | 152 |
| 151 friend class base::RefCountedThreadSafe<Picture>; | 153 friend class base::RefCountedThreadSafe<Picture>; |
| 152 friend class PixelRefIterator; | 154 friend class PixelRefIterator; |
| 153 DISALLOW_COPY_AND_ASSIGN(Picture); | 155 DISALLOW_COPY_AND_ASSIGN(Picture); |
| 154 }; | 156 }; |
| 155 | 157 |
| 156 } // namespace cc | 158 } // namespace cc |
| 157 | 159 |
| 158 #endif // CC_RESOURCES_PICTURE_H_ | 160 #endif // CC_RESOURCES_PICTURE_H_ |
| OLD | NEW |