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

Side by Side Diff: cc/resources/picture.h

Issue 15774010: Add TRACE_EVENT_IS_NEW_TRACE as a way to snapshot objects at start of recording (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 months 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/layers/picture_layer_impl.cc ('k') | cc/resources/picture.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/resources/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698