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

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

Issue 2716203002: blink: Fix cc/paint skia type mismatches (Closed)
Patch Set: Fix canvas Created 3 years, 10 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 8616b7c2eecd8c769764e0d86ec0692158b0b3af..3371f912ecd5a690d19171125f09017afe471381 100644
--- a/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
+++ b/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h
@@ -136,11 +136,11 @@ void drawPlatformFocusRing(const PrimitiveType&,
float width);
// TODO(fmalita): remove in favor of direct SrcRectConstraint use.
-inline SkCanvas::SrcRectConstraint WebCoreClampingModeToSkiaRectConstraint(
+inline PaintCanvas::SrcRectConstraint WebCoreClampingModeToSkiaRectConstraint(
Image::ImageClampingMode clampMode) {
return clampMode == Image::ClampImageToSourceRect
- ? SkCanvas::kStrict_SrcRectConstraint
- : SkCanvas::kFast_SrcRectConstraint;
+ ? PaintCanvas::kStrict_SrcRectConstraint
+ : PaintCanvas::kFast_SrcRectConstraint;
}
// Skia's smart pointer APIs are preferable over their legacy raw pointer

Powered by Google App Engine
This is Rietveld 408576698