Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3907)

Unified Diff: cc/raster/tile_task_runner.h

Issue 1885873002: cc: Rename TileTaskClient interface to RasterBufferProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_schedule
Patch Set: Removed patch dependency. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/raster/raster_buffer.h ('k') | cc/raster/tile_task_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_runner.h
diff --git a/cc/raster/tile_task_runner.h b/cc/raster/tile_task_runner.h
index fe0457506e3ab21db26c0f290d443e6d049d57c8..dc1586a606b5ebc541ffc000279bcc1514c6936e 100644
--- a/cc/raster/tile_task_runner.h
+++ b/cc/raster/tile_task_runner.h
@@ -10,33 +10,18 @@
#include <vector>
#include "base/callback.h"
+#include "cc/raster/raster_buffer.h"
#include "cc/raster/task_graph_runner.h"
#include "cc/resources/resource_format.h"
namespace cc {
-class ImageDecodeTask;
-class RasterTask;
-class Resource;
-class RasterBuffer;
-
-class CC_EXPORT TileTaskClient {
- public:
- virtual std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
- const Resource* resource,
- uint64_t resource_content_id,
- uint64_t previous_content_id) = 0;
- virtual void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) = 0;
-
- protected:
- virtual ~TileTaskClient() {}
-};
class CC_EXPORT TileTask : public Task {
public:
typedef std::vector<scoped_refptr<TileTask>> Vector;
- virtual void ScheduleOnOriginThread(TileTaskClient* client) = 0;
- virtual void CompleteOnOriginThread(TileTaskClient* client) = 0;
+ virtual void ScheduleOnOriginThread(RasterBufferProvider* provider) = 0;
+ virtual void CompleteOnOriginThread(RasterBufferProvider* provider) = 0;
void WillSchedule();
void DidSchedule();
@@ -116,6 +101,9 @@ class CC_EXPORT TileTaskRunner {
// Determine if the resource requires swizzling.
virtual bool GetResourceRequiresSwizzle(bool must_support_alpha) const = 0;
+ // Downcasting routine for RasterBufferProvider interface.
+ virtual RasterBufferProvider* AsRasterBufferProvider() = 0;
+
protected:
// Check if resource format matches output format.
static bool ResourceFormatRequiresSwizzle(ResourceFormat format);
« no previous file with comments | « cc/raster/raster_buffer.h ('k') | cc/raster/tile_task_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698