| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_RESOURCES_TILE_DATA_H_ |
| 6 #define CC_RESOURCES_TILE_DATA_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/resources/tile_priority.h" |
| 10 |
| 11 namespace base { |
| 12 class Value; |
| 13 } |
| 14 |
| 15 namespace cc { |
| 16 |
| 17 // Low quality implies no lcd test; |
| 18 // high quality implies lcd text. |
| 19 // Note that the order of these matters, from "better" to "worse" in terms of |
| 20 // quality. |
| 21 enum RasterMode { |
| 22 HIGH_QUALITY_RASTER_MODE = 0, |
| 23 HIGH_QUALITY_NO_LCD_RASTER_MODE = 1, |
| 24 LOW_QUALITY_RASTER_MODE = 2, |
| 25 NUM_RASTER_MODES = 3 |
| 26 }; |
| 27 |
| 28 scoped_ptr<base::Value> RasterModeAsValue(RasterMode mode); |
| 29 |
| 30 // Data that is passed to raster tasks. |
| 31 struct RasterTaskMetadata { |
| 32 scoped_ptr<base::Value> AsValue() const; |
| 33 bool is_tile_in_pending_tree_now_bin; |
| 34 TileResolution tile_resolution; |
| 35 int layer_id; |
| 36 const void* tile_id; |
| 37 int source_frame_number; |
| 38 }; |
| 39 |
| 40 } // namespace cc |
| 41 |
| 42 #endif // CC_RESOURCES_TILE_DATA_H_ |
| OLD | NEW |