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

Unified Diff: cc/raster/raster_buffer.h

Issue 1854723002: cc: Simplify task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected scope of dependencies. 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
Index: cc/raster/raster_buffer.h
diff --git a/cc/raster/raster_buffer.h b/cc/raster/raster_buffer.h
index 04972f9d73e11117f81753977b4289ef260c3997..2f132f09af6ad0ff3306e151cf066f88d1155c7e 100644
--- a/cc/raster/raster_buffer.h
+++ b/cc/raster/raster_buffer.h
@@ -7,11 +7,26 @@
#include <stdint.h>
+#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
#include "cc/playback/raster_source.h"
#include "ui/gfx/geometry/rect.h"
namespace cc {
+class RasterBuffer;
+class Resource;
+
+class CC_EXPORT RasterBufferProvider {
+ public:
+ virtual scoped_ptr<RasterBuffer> AcquireBufferForRaster(
+ const Resource* resource,
+ uint64_t resource_content_id,
+ uint64_t previous_content_id) = 0;
+ virtual void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) = 0;
+
+ protected:
+ virtual ~RasterBufferProvider() {}
+};
class CC_EXPORT RasterBuffer {
public:

Powered by Google App Engine
This is Rietveld 408576698