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

Unified Diff: third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h

Issue 2391943002: Rewrap comments to 80 columns in platform/graphics/{compositing,cpu,gpu,skia}/. (Closed)
Patch Set: One space 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/skia/SkiaUtils.h
diff --git a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
index 28207c5d12573374a42f055e5b2e18c9d0190846..7d2972ddbb2e809edb42c7c4a07ae705206894f0 100644
--- a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
+++ b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
@@ -28,7 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// All of the functions in this file should move to new homes and this file should be deleted.
+// All of the functions in this file should move to new homes and this file
+// should be deleted.
#ifndef SkiaUtils_h
#define SkiaUtils_h
@@ -51,9 +52,9 @@ class GraphicsContext;
/**** constants ****/
enum {
- // Firefox limits width/height to 32767 pixels, but slows down dramatically before it
- // reaches that limit. We limit by area instead, giving us larger maximum dimensions,
- // in exchange for a smaller maximum canvas size.
+ // Firefox limits width/height to 32767 pixels, but slows down dramatically
+ // before it reaches that limit. We limit by area instead, giving us larger
+ // maximum dimensions, in exchange for a smaller maximum canvas size.
kMaxCanvasArea = 32768 * 8192, // Maximum canvas area in CSS pixels
// In Skia, we will also limit width/height to 32767.
@@ -120,7 +121,8 @@ InterpolationQuality computeInterpolationQuality(float srcWidth,
float destHeight,
bool isDataComplete = true);
-// This replicates the old skia behavior when it used to take radius for blur. Now it takes sigma.
+// This replicates the old skia behavior when it used to take radius for blur.
+// Now it takes sigma.
inline SkScalar skBlurRadiusToSigma(SkScalar radius) {
SkASSERT(radius >= 0);
if (radius == 0)
@@ -139,23 +141,23 @@ inline SkCanvas::SrcRectConstraint WebCoreClampingModeToSkiaRectConstraint(
: SkCanvas::kFast_SrcRectConstraint;
}
-// Skia's smart pointer APIs are preferable over their legacy raw pointer counterparts.
+// Skia's smart pointer APIs are preferable over their legacy raw pointer
+// counterparts.
//
// General guidelines
//
// When receiving ref counted objects from Skia:
//
-// 1) use sk_sp-based Skia factories if available (e.g. SkShader::MakeFoo() instead of
-// SkShader::CreateFoo())
-//
-// 2) use sk_sp<T> locals for all objects
+// 1) Use sk_sp-based Skia factories if available (e.g. SkShader::MakeFoo()
+// instead of SkShader::CreateFoo()).
+// 2) Use sk_sp<T> locals for all objects.
//
// When passing ref counted objects to Skia:
//
-// 1) use sk_sp-based Skia APIs when available (e.g. SkPaint::setShader(sk_sp<SkShader>)
-// instead of SkPaint::setShader(SkShader*))
-//
-// 2) if the object ownership is being passed to Skia, use std::move(sk_sp<T>)
+// 1) Use sk_sp-based Skia APIs when available (e.g.
+// SkPaint::setShader(sk_sp<SkShader>) instead of
+// SkPaint::setShader(SkShader*)).
+// 2) If object ownership is being passed to Skia, use std::move(sk_sp<T>).
//
// Example (creating a SkShader and setting it on SkPaint):
//

Powered by Google App Engine
This is Rietveld 408576698