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

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

Issue 69343005: Added preliminary support for tile rasterization with Ganesh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return managed_state_.tile_versions[mode]; 104 return managed_state_.tile_versions[mode];
105 } 105 }
106 106
107 gfx::Size size() const { return tile_size_.size(); } 107 gfx::Size size() const { return tile_size_.size(); }
108 108
109 private: 109 private:
110 friend class TileManager; 110 friend class TileManager;
111 friend class PrioritizedTileSet; 111 friend class PrioritizedTileSet;
112 friend class FakeTileManager; 112 friend class FakeTileManager;
113 friend class BinComparator; 113 friend class BinComparator;
114 friend class GaneshRasterizer;
reveman 2013/11/24 21:56:57 is this necessary?
slavi 2013/11/25 23:13:14 Yes, I need access to part tile's state that's not
114 115
115 // Methods called by by tile manager. 116 // Methods called by by tile manager.
116 Tile(TileManager* tile_manager, 117 Tile(TileManager* tile_manager,
117 PicturePileImpl* picture_pile, 118 PicturePileImpl* picture_pile,
118 gfx::Size tile_size, 119 gfx::Size tile_size,
119 gfx::Rect content_rect, 120 gfx::Rect content_rect,
120 gfx::Rect opaque_rect, 121 gfx::Rect opaque_rect,
121 float contents_scale, 122 float contents_scale,
122 int layer_id, 123 int layer_id,
123 int source_frame_number, 124 int source_frame_number,
(...skipping 18 matching lines...) Expand all
142 143
143 Id id_; 144 Id id_;
144 static Id s_next_id_; 145 static Id s_next_id_;
145 146
146 DISALLOW_COPY_AND_ASSIGN(Tile); 147 DISALLOW_COPY_AND_ASSIGN(Tile);
147 }; 148 };
148 149
149 } // namespace cc 150 } // namespace cc
150 151
151 #endif // CC_RESOURCES_TILE_H_ 152 #endif // CC_RESOURCES_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698