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

Unified Diff: Source/platform/graphics/skia/NativeImageSkia.h

Issue 416543002: Move logic from NativeImageSkia to GraphicsContext and SkiaUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test regressions fixed Created 6 years, 5 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
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/NativeImageSkia.h
diff --git a/Source/platform/graphics/skia/NativeImageSkia.h b/Source/platform/graphics/skia/NativeImageSkia.h
index 00b0a889f9ccefcc2ef5d86c70a634c94e87d39f..33e2dd9c9b74f027803cd869c839a2c810bc47fb 100644
--- a/Source/platform/graphics/skia/NativeImageSkia.h
+++ b/Source/platform/graphics/skia/NativeImageSkia.h
@@ -105,7 +105,13 @@ public:
// Rectangle of the subset in the scaled image.
SkBitmap resizedBitmap(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
- void draw(GraphicsContext*, const SkRect& srcRect, const SkRect& destRect, PassRefPtr<SkXfermode>) const;
+ void draw(
+ GraphicsContext*,
+ const SkRect& srcRect,
+ const SkRect& destRect,
+ CompositeOperator,
+ blink::WebBlendMode) const;
+
void drawPattern(
GraphicsContext*,
const FloatRect& srcRect,
@@ -152,9 +158,7 @@ private:
// entire thing, it's best to just do it up front.
bool shouldCacheResampling(const SkISize& scaledImageSize, const SkIRect& scaledImageSubset) const;
- InterpolationQuality computeInterpolationQuality(const SkMatrix&, float srcWidth, float srcHeight, float destWidth, float destHeight) const;
SkBitmap extractScaledImageFragment(const SkRect& srcRect, float scaleX, float scaleY, SkRect* scaledSrcRect) const;
- void drawResampledBitmap(GraphicsContext*, SkPaint&, const SkRect& srcRect, const SkRect& destRect) const;
// The original image.
SkBitmap m_image;
« no previous file with comments | « Source/platform/graphics/GraphicsContext.cpp ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698