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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp

Issue 2556973002: Allow specifying ColorBehavior to ImageSource (Closed)
Patch Set: Rebase 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/BitmapImageTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp b/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp
index 6cc32908adbce33d5d945d42143ba906e1a2fa39..9bcb80f76322a85fdc5e9b908c78e6928f10565b 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp
@@ -76,7 +76,7 @@ class BitmapImageTest : public ::testing::Test {
void destroyDecodedData() { m_image->destroyDecodedData(); }
size_t frameCount() { return m_image->frameCount(); }
sk_sp<SkImage> frameAtIndex(size_t index) {
- return m_image->frameAtIndex(index);
+ return m_image->frameAtIndex(index, m_image->m_cachedFrameColorBehavior);
}
void setCurrentFrame(size_t frame) { m_image->m_currentFrame = frame; }
size_t frameDecodedSize(size_t frame) {

Powered by Google App Engine
This is Rietveld 408576698