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

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

Issue 2578803002: Remove full-size bitmap copy on SkImage::scalePixels->IFG::decodeAndScale
Patch Set: Created 4 years 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/ImageFrameGenerator.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
index 65ce816863b5a8a378fc0cbc7f67b3c2607e2d2d..6d06ef5c2c7d42066309bdc2bd859a34faacd3f5 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageFrameGenerator.h
@@ -73,8 +73,9 @@ class PLATFORM_EXPORT ImageFrameGenerator final
~ImageFrameGenerator();
- // Decodes and scales the specified frame at |index|. The dimensions and
- // output format are given in SkImageInfo. Decoded pixels are written into
+ // Decodes and scales the specified frame at |index|. The dimensions and
+ // output format are given in SkImageInfo. Decoded pixels are scaled if
+ // necessary, applying the specified filter-quality, and then written into
// |pixels| with a stride of |rowBytes|. Returns true if decoding was
// successful.
bool decodeAndScale(SegmentReader*,
@@ -82,7 +83,8 @@ class PLATFORM_EXPORT ImageFrameGenerator final
size_t index,
const SkImageInfo&,
void* pixels,
- size_t rowBytes);
+ size_t rowBytes,
+ SkFilterQuality = kLow_SkFilterQuality);
// Decodes YUV components directly into the provided memory planes. Must not
// be called unless getYUVComponentSizes has been called and returned true.

Powered by Google App Engine
This is Rietveld 408576698