Index: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h |
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h |
index 5a20a1208026a35cfeeb6389889ba5ebb634f65a..874c52fa39aade764e4eca93af7814d836bb56ba 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h |
+++ b/third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h |
@@ -82,11 +82,16 @@ class PLATFORM_EXPORT ImageBufferSurface { |
SkXfermode::Mode); |
virtual void setHasExpensiveOp() {} |
virtual GLuint getBackingTextureHandleForOverwrite() { return 0; } |
- virtual void flush( |
- FlushReason); // Execute all deferred rendering immediately |
+ |
+ // Executes all deferred rendering immediately. |
+ virtual void flush(FlushReason); |
+ |
+ // Like flush, but flushes all the way down to the GPU context if the surface |
+ // uses the GPU. |
virtual void flushGpu(FlushReason reason) { |
flush(reason); |
- } // Like flush, but flushes all the way down to the GPU context if the surface uses the GPU |
+ } |
+ |
virtual void prepareSurfaceForPaintingIfNeeded() {} |
virtual bool writePixels(const SkImageInfo& origInfo, |
const void* pixels, |
@@ -94,7 +99,8 @@ class PLATFORM_EXPORT ImageBufferSurface { |
int x, |
int y); |
- // May return nullptr if the surface is GPU-backed and the GPU context was lost. |
+ // May return nullptr if the surface is GPU-backed and the GPU context was |
+ // lost. |
virtual sk_sp<SkImage> newImageSnapshot(AccelerationHint, SnapshotReason) = 0; |
OpacityMode getOpacityMode() const { return m_opacityMode; } |