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

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

Issue 63443003: cc: Combine analysis and raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove analysis time from rendering stats Created 6 years, 11 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/debug/rendering_stats_instrumentation.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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Gather pixel refs from recording. 65 // Gather pixel refs from recording.
66 void GatherPixelRefs(const SkTileGridPicture::TileGridInfo& tile_grid_info); 66 void GatherPixelRefs(const SkTileGridPicture::TileGridInfo& tile_grid_info);
67 67
68 // Has Record() been called yet? 68 // Has Record() been called yet?
69 bool HasRecording() const { return picture_.get() != NULL; } 69 bool HasRecording() const { return picture_.get() != NULL; }
70 70
71 // Apply this scale and raster the negated region into the canvas. See comment 71 // Apply this scale and raster the negated region into the canvas. See comment
72 // in PicturePileImpl::RasterCommon for explanation on negated content region. 72 // in PicturePileImpl::RasterCommon for explanation on negated content region.
73 int Raster(SkCanvas* canvas, 73 int Raster(SkCanvas* canvas,
74 SkDrawPictureCallback* callback,
75 const Region& negated_content_region, 74 const Region& negated_content_region,
76 float contents_scale); 75 float contents_scale);
77 76
78 // Draw the picture directly into the given canvas, without applying any 77 // Draw the picture directly into the given canvas, without applying any
79 // clip/scale/layer transformations. 78 // clip/scale/layer transformations.
80 void Replay(SkCanvas* canvas); 79 void Replay(SkCanvas* canvas);
81 80
82 scoped_ptr<base::Value> AsValue() const; 81 scoped_ptr<base::Value> AsValue() const;
83 82
84 class CC_EXPORT PixelRefIterator { 83 class CC_EXPORT PixelRefIterator {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 AsTraceableRecordData() const; 150 AsTraceableRecordData() const;
152 151
153 friend class base::RefCountedThreadSafe<Picture>; 152 friend class base::RefCountedThreadSafe<Picture>;
154 friend class PixelRefIterator; 153 friend class PixelRefIterator;
155 DISALLOW_COPY_AND_ASSIGN(Picture); 154 DISALLOW_COPY_AND_ASSIGN(Picture);
156 }; 155 };
157 156
158 } // namespace cc 157 } // namespace cc
159 158
160 #endif // CC_RESOURCES_PICTURE_H_ 159 #endif // CC_RESOURCES_PICTURE_H_
OLDNEW
« no previous file with comments | « cc/debug/rendering_stats_instrumentation.cc ('k') | cc/resources/picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698