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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h

Issue 2398453002: Rewrap comments to 80 columns in Source/platform/graphics/. (Closed)
Patch Set: Review feedback Created 4 years, 2 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: 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; }

Powered by Google App Engine
This is Rietveld 408576698