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

Unified Diff: Source/platform/graphics/DecodingImageGenerator.cpp

Issue 304353008: move to new ImageGenerator API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/DecodingImageGenerator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/DecodingImageGenerator.cpp
diff --git a/Source/platform/graphics/DecodingImageGenerator.cpp b/Source/platform/graphics/DecodingImageGenerator.cpp
index c72c913485e898a5dcf5626dd7a36e7d37baa622..a32fc04b4c92940a8b6dfae85c3243a9d3a56051 100644
--- a/Source/platform/graphics/DecodingImageGenerator.cpp
+++ b/Source/platform/graphics/DecodingImageGenerator.cpp
@@ -47,7 +47,7 @@ DecodingImageGenerator::~DecodingImageGenerator()
{
}
-SkData* DecodingImageGenerator::refEncodedData()
+SkData* DecodingImageGenerator::onRefEncodedData()
{
// FIXME: If the image has been clipped or scaled, do not return the original
// encoded data, since on playback it will not be known how the clipping/scaling
@@ -55,19 +55,18 @@ SkData* DecodingImageGenerator::refEncodedData()
RefPtr<SharedBuffer> buffer = nullptr;
bool allDataReceived = false;
m_frameGenerator->copyData(&buffer, &allDataReceived);
- if (buffer && allDataReceived) {
+ if (buffer && allDataReceived)
return SkData::NewWithCopy(buffer->data(), buffer->size());
- }
return 0;
}
-bool DecodingImageGenerator::getInfo(SkImageInfo* info)
+bool DecodingImageGenerator::onGetInfo(SkImageInfo* info)
{
*info = m_imageInfo;
return true;
}
-bool DecodingImageGenerator::getPixels(const SkImageInfo& info, void* pixels, size_t rowBytes)
+bool DecodingImageGenerator::onGetPixels(const SkImageInfo& info, void* pixels, size_t rowBytes, SkPMColor ctable[], int* ctableCount)
{
TRACE_EVENT1("webkit", "DecodingImageGenerator::getPixels", "index", static_cast<int>(m_frameIndex));
« no previous file with comments | « Source/platform/graphics/DecodingImageGenerator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698