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_RASTER_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RASTER_TILE_TASK_WORKER_POOL_H_ |
6 #define CC_RASTER_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RASTER_TILE_TASK_WORKER_POOL_H_ |
7 | 7 |
8 #include "cc/raster/tile_task_runner.h" | 8 #include "cc/raster/tile_task_runner.h" |
9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // already partially complete, and only the subrect needs to be played back. | 61 // already partially complete, and only the subrect needs to be played back. |
62 static void PlaybackToMemory(void* memory, | 62 static void PlaybackToMemory(void* memory, |
63 ResourceFormat format, | 63 ResourceFormat format, |
64 const gfx::Size& size, | 64 const gfx::Size& size, |
65 size_t stride, | 65 size_t stride, |
66 const RasterSource* raster_source, | 66 const RasterSource* raster_source, |
67 const gfx::Rect& canvas_bitmap_rect, | 67 const gfx::Rect& canvas_bitmap_rect, |
68 const gfx::Rect& canvas_playback_rect, | 68 const gfx::Rect& canvas_playback_rect, |
69 float scale); | 69 float scale); |
70 | 70 |
| 71 virtual void ReleaseFreeMemory() {} |
| 72 |
71 // Type-checking downcast routine. | 73 // Type-checking downcast routine. |
72 virtual TileTaskRunner* AsTileTaskRunner() = 0; | 74 virtual TileTaskRunner* AsTileTaskRunner() = 0; |
73 }; | 75 }; |
74 | 76 |
75 } // namespace cc | 77 } // namespace cc |
76 | 78 |
77 #endif // CC_RASTER_TILE_TASK_WORKER_POOL_H_ | 79 #endif // CC_RASTER_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |