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

Unified 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: Fix cc_perftests compile error. 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/tile.h
diff --git a/cc/resources/tile.h b/cc/resources/tile.h
index 440c6b031984bf4c2c7816c71cf1e4db223a7bc3..407b7e40b86fb8c81ff37a3fea5548e319a5eb7d 100644
--- a/cc/resources/tile.h
+++ b/cc/resources/tile.h
@@ -60,6 +60,10 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
return can_use_lcd_text_;
}
+ bool use_gpu_rasterizer() const {
+ return use_gpu_rasterizer_;
+ }
+
scoped_ptr<base::Value> AsValue() const;
inline bool IsReadyToDraw() const {
@@ -112,6 +116,7 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
friend class FakeTileManager;
friend class BinComparator;
friend class FakePictureLayerImpl;
+ friend class GpuRasterizer;
// Methods called by by tile manager.
Tile(TileManager* tile_manager,
@@ -122,7 +127,8 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
float contents_scale,
int layer_id,
int source_frame_number,
- bool can_use_lcd_text);
+ bool can_use_lcd_text,
+ bool use_gpu_rasterizer);
~Tile();
ManagedTileState& managed_state() { return managed_state_; }
@@ -140,6 +146,7 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> {
int layer_id_;
int source_frame_number_;
bool can_use_lcd_text_;
+ bool use_gpu_rasterizer_;
Id id_;
static Id s_next_id_;

Powered by Google App Engine
This is Rietveld 408576698