| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 const Picture* picture_; | 105 const Picture* picture_; |
| 106 const PixelRefs* current_pixel_refs_; | 106 const PixelRefs* current_pixel_refs_; |
| 107 unsigned current_index_; | 107 unsigned current_index_; |
| 108 | 108 |
| 109 gfx::Point min_point_; | 109 gfx::Point min_point_; |
| 110 gfx::Point max_point_; | 110 gfx::Point max_point_; |
| 111 int current_x_; | 111 int current_x_; |
| 112 int current_y_; | 112 int current_y_; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 void EmitTraceSnapshot(); |
| 116 |
| 115 private: | 117 private: |
| 116 explicit Picture(gfx::Rect layer_rect); | 118 explicit Picture(gfx::Rect layer_rect); |
| 117 Picture(const base::Value*, bool* success); | 119 Picture(const base::Value*, bool* success); |
| 118 // This constructor assumes SkPicture is already ref'd and transfers | 120 // This constructor assumes SkPicture is already ref'd and transfers |
| 119 // ownership to this picture. | 121 // ownership to this picture. |
| 120 Picture(const skia::RefPtr<SkPicture>&, | 122 Picture(const skia::RefPtr<SkPicture>&, |
| 121 gfx::Rect layer_rect, | 123 gfx::Rect layer_rect, |
| 122 gfx::Rect opaque_rect, | 124 gfx::Rect opaque_rect, |
| 123 const PixelRefMap& pixel_refs); | 125 const PixelRefMap& pixel_refs); |
| 124 ~Picture(); | 126 ~Picture(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 139 AsTraceableRasterData(gfx::Rect rect, float scale); | 141 AsTraceableRasterData(gfx::Rect rect, float scale); |
| 140 | 142 |
| 141 friend class base::RefCountedThreadSafe<Picture>; | 143 friend class base::RefCountedThreadSafe<Picture>; |
| 142 friend class PixelRefIterator; | 144 friend class PixelRefIterator; |
| 143 DISALLOW_COPY_AND_ASSIGN(Picture); | 145 DISALLOW_COPY_AND_ASSIGN(Picture); |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 } // namespace cc | 148 } // namespace cc |
| 147 | 149 |
| 148 #endif // CC_RESOURCES_PICTURE_H_ | 150 #endif // CC_RESOURCES_PICTURE_H_ |
| OLD | NEW |