OLD | NEW |
---|---|
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_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ |
6 #define CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ |
7 | 7 |
8 #include "base/threading/platform_thread.h" | 8 #include "base/threading/platform_thread.h" |
9 #include "cc/resources/tile_task_runner.h" | 9 #include "cc/resources/tile_task_runner.h" |
10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
73 static void PlaybackToMemory(void* memory, | 73 static void PlaybackToMemory(void* memory, |
74 ResourceFormat format, | 74 ResourceFormat format, |
75 const gfx::Size& size, | 75 const gfx::Size& size, |
76 int stride, | 76 int stride, |
77 const RasterSource* raster_source, | 77 const RasterSource* raster_source, |
78 const gfx::Rect& rect, | 78 const gfx::Rect& rect, |
79 float scale); | 79 float scale); |
80 | 80 |
81 // Type-checking downcast routine. | 81 // Type-checking downcast routine. |
82 virtual TileTaskRunner* AsTileTaskRunner() = 0; | 82 virtual TileTaskRunner* AsTileTaskRunner() = 0; |
83 | |
84 // Returns the most appropriate format to use. | |
85 virtual ResourceFormat GetResourceFormat() = 0; | |
reveman
2015/01/22 23:01:46
How about we make this part of the TileTaskRunner
peterp
2015/01/23 13:19:06
Good idea. Done.
| |
83 }; | 86 }; |
84 | 87 |
85 } // namespace cc | 88 } // namespace cc |
86 | 89 |
87 #endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ | 90 #endif // CC_RESOURCES_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |