Index: cc/resources/resource_provider.h |
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h |
index 73b5a23dcdf3c249f075946ce7a0c6deb77ac0d6..dd7e200e3e1e73b13541ebb2130f7a3396690dcf 100644 |
--- a/cc/resources/resource_provider.h |
+++ b/cc/resources/resource_provider.h |
@@ -331,15 +331,14 @@ |
SkCanvas* MapImageRasterBuffer(ResourceId id); |
void UnmapImageRasterBuffer(ResourceId id); |
- // Returns a canvas backed by pixel buffer. UnmapPixelRasterBuffer |
- // returns true if canvas was written to while mapped. |
+ // Returns a canvas backed by pixel buffer. |
// The pixel buffer needs to be uploaded to the underlying resource |
// using BeginSetPixels before the resouce can be used for compositing. |
// It is used by PixelRasterWorkerPool. |
void AcquirePixelRasterBuffer(ResourceId id); |
void ReleasePixelRasterBuffer(ResourceId id); |
SkCanvas* MapPixelRasterBuffer(ResourceId id); |
- bool UnmapPixelRasterBuffer(ResourceId id); |
+ void UnmapPixelRasterBuffer(ResourceId id); |
// Asynchronously update pixels from acquired pixel buffer. |
void BeginSetPixels(ResourceId id); |
@@ -451,8 +450,7 @@ |
virtual ~RasterBuffer(); |
SkCanvas* LockForWrite(); |
- // Returns true if canvas was written to while locked. |
- bool UnlockForWrite(); |
+ void UnlockForWrite(); |
protected: |
RasterBuffer(const Resource* resource, ResourceProvider* resource_provider); |
@@ -460,7 +458,7 @@ |
ResourceProvider* resource_provider() const { return resource_provider_; } |
virtual SkCanvas* DoLockForWrite() = 0; |
- virtual bool DoUnlockForWrite() = 0; |
+ virtual void DoUnlockForWrite() = 0; |
private: |
const Resource* resource_; |
@@ -477,13 +475,11 @@ |
protected: |
virtual SkCanvas* DoLockForWrite() OVERRIDE; |
- virtual bool DoUnlockForWrite() OVERRIDE; |
+ virtual void DoUnlockForWrite() OVERRIDE; |
skia::RefPtr<SkSurface> CreateSurface(); |
private: |
skia::RefPtr<SkSurface> surface_; |
- uint32_t surface_generation_id_; |
- |
DISALLOW_COPY_AND_ASSIGN(DirectRasterBuffer); |
}; |
@@ -496,7 +492,7 @@ |
ResourceProvider* resource_provider); |
virtual SkCanvas* DoLockForWrite() OVERRIDE; |
- virtual bool DoUnlockForWrite() OVERRIDE; |
+ virtual void DoUnlockForWrite() OVERRIDE; |
virtual uint8_t* MapBuffer(int* stride) = 0; |
virtual void UnmapBuffer() = 0; |
@@ -504,7 +500,6 @@ |
private: |
uint8_t* mapped_buffer_; |
SkBitmap raster_bitmap_; |
- uint32_t raster_bitmap_generation_id_; |
skia::RefPtr<SkCanvas> raster_canvas_; |
}; |