Index: cc/resources/raster_worker_pool.h |
diff --git a/cc/resources/raster_worker_pool.h b/cc/resources/raster_worker_pool.h |
index d0e1e7c0de0a14f070ed9f9347a919f42831e283..8bca849b52589f66b29767f55ba191cabb7f7b41 100644 |
--- a/cc/resources/raster_worker_pool.h |
+++ b/cc/resources/raster_worker_pool.h |
@@ -13,6 +13,7 @@ |
#include "cc/resources/raster_mode.h" |
#include "cc/resources/tile_priority.h" |
#include "cc/resources/worker_pool.h" |
+#include "third_party/khronos/GLES2/gl2.h" |
class SkDevice; |
@@ -183,6 +184,9 @@ class CC_EXPORT RasterWorkerPool : public WorkerPool { |
// even if they later get canceled by another call to ScheduleTasks(). |
virtual void ScheduleTasks(RasterTask::Queue* queue) = 0; |
+ // Returns the format that need to be used for raster task resources. |
kaanb
2013/08/15 18:31:29
nit: s/need/needs/
reveman
2013/08/16 01:34:57
Done.
|
+ virtual GLenum GetResourceFormat() const = 0; |
+ |
// TODO(vmpstr): Figure out an elegant way to not pass this many parameters. |
static RasterTask CreateRasterTask( |
const Resource* resource, |