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

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

Issue 66213007: cc: Add rasterize and record micro benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tile grid accessor Created 7 years, 1 month 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/rasterize_and_record_benchmark_impl.cc ('k') | cc/resources/picture_pile_base.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PILE_BASE_H_ 5 #ifndef CC_RESOURCES_PICTURE_PILE_BASE_H_
6 #define CC_RESOURCES_PICTURE_PILE_BASE_H_ 6 #define CC_RESOURCES_PICTURE_PILE_BASE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 23 matching lines...) Expand all
34 34
35 void UpdateRecordedRegion(); 35 void UpdateRecordedRegion();
36 const Region& recorded_region() const { return recorded_region_; } 36 const Region& recorded_region() const { return recorded_region_; }
37 37
38 int num_tiles_x() const { return tiling_.num_tiles_x(); } 38 int num_tiles_x() const { return tiling_.num_tiles_x(); }
39 int num_tiles_y() const { return tiling_.num_tiles_y(); } 39 int num_tiles_y() const { return tiling_.num_tiles_y(); }
40 gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); } 40 gfx::Rect tile_bounds(int x, int y) const { return tiling_.TileBounds(x, y); }
41 bool HasRecordingAt(int x, int y); 41 bool HasRecordingAt(int x, int y);
42 bool CanRaster(float contents_scale, gfx::Rect content_rect); 42 bool CanRaster(float contents_scale, gfx::Rect content_rect);
43 43
44 static void ComputeTileGridInfo(gfx::Size tile_grid_size,
45 SkTileGridPicture::TileGridInfo* info);
46
44 void SetTileGridSize(gfx::Size tile_grid_size); 47 void SetTileGridSize(gfx::Size tile_grid_size);
45 TilingData& tiling() { return tiling_; } 48 TilingData& tiling() { return tiling_; }
46 49
47 scoped_ptr<base::Value> AsValue() const; 50 scoped_ptr<base::Value> AsValue() const;
48 51
49 protected: 52 protected:
50 struct CC_EXPORT PictureInfo { 53 struct CC_EXPORT PictureInfo {
51 PictureInfo(); 54 PictureInfo();
52 ~PictureInfo(); 55 ~PictureInfo();
53 56
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 private: 88 private:
86 void SetBufferPixels(int buffer_pixels); 89 void SetBufferPixels(int buffer_pixels);
87 90
88 friend class base::RefCounted<PicturePileBase>; 91 friend class base::RefCounted<PicturePileBase>;
89 DISALLOW_COPY_AND_ASSIGN(PicturePileBase); 92 DISALLOW_COPY_AND_ASSIGN(PicturePileBase);
90 }; 93 };
91 94
92 } // namespace cc 95 } // namespace cc
93 96
94 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_ 97 #endif // CC_RESOURCES_PICTURE_PILE_BASE_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.cc ('k') | cc/resources/picture_pile_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698