| Index: cc/resources/raster_worker_pool.h
|
| diff --git a/cc/resources/raster_worker_pool.h b/cc/resources/raster_worker_pool.h
|
| index 5a9fd25137bdfe53f60c299c83cdbb0b7c1f2783..8631bb3748700327a36dcc97974467628cea7b19 100644
|
| --- a/cc/resources/raster_worker_pool.h
|
| +++ b/cc/resources/raster_worker_pool.h
|
| @@ -6,6 +6,7 @@
|
| #define CC_RESOURCES_RASTER_WORKER_POOL_H_
|
|
|
| #include "cc/resources/rasterizer.h"
|
| +#include "ui/gfx/geometry/size.h"
|
|
|
| namespace base {
|
| class SequencedTaskRunner;
|
| @@ -70,6 +71,17 @@ class CC_EXPORT RasterWorkerPool {
|
| const ImageDecodeTask::Vector& decode_tasks,
|
| unsigned priority);
|
|
|
| + // Utility functions that transparently create a temporary bitmap and copy
|
| + // pixels to buffer when necessary.
|
| + static void AcquireBitmapForBuffer(SkBitmap* bitmap,
|
| + uint8_t* buffer,
|
| + ResourceFormat format,
|
| + const gfx::Size& size,
|
| + int stride);
|
| + static void ReleaseBitmapForBuffer(SkBitmap* bitmap,
|
| + uint8_t* buffer,
|
| + ResourceFormat format);
|
| +
|
| // Type-checking downcast routine.
|
| virtual Rasterizer* AsRasterizer() = 0;
|
| };
|
|
|