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

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

Issue 126343003: Revert of cc: Combine analysis and raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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,
74 const Region& negated_content_region, 75 const Region& negated_content_region,
75 float contents_scale); 76 float contents_scale);
76 77
77 // Draw the picture directly into the given canvas, without applying any 78 // Draw the picture directly into the given canvas, without applying any
78 // clip/scale/layer transformations. 79 // clip/scale/layer transformations.
79 void Replay(SkCanvas* canvas); 80 void Replay(SkCanvas* canvas);
80 81
81 scoped_ptr<base::Value> AsValue() const; 82 scoped_ptr<base::Value> AsValue() const;
82 83
83 class CC_EXPORT PixelRefIterator { 84 class CC_EXPORT PixelRefIterator {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 AsTraceableRecordData() const; 151 AsTraceableRecordData() const;
151 152
152 friend class base::RefCountedThreadSafe<Picture>; 153 friend class base::RefCountedThreadSafe<Picture>;
153 friend class PixelRefIterator; 154 friend class PixelRefIterator;
154 DISALLOW_COPY_AND_ASSIGN(Picture); 155 DISALLOW_COPY_AND_ASSIGN(Picture);
155 }; 156 };
156 157
157 } // namespace cc 158 } // namespace cc
158 159
159 #endif // CC_RESOURCES_PICTURE_H_ 160 #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