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

Unified Diff: blimp/client/feature/compositor/decoding_image_generator.cc

Issue 1985863002: Incorporate BlobChannel into Blimp image encode/decode pipeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-helium
Patch Set: fix gn dependency warning & rebase Created 4 years, 6 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: blimp/client/feature/compositor/decoding_image_generator.cc
diff --git a/blimp/client/feature/compositor/decoding_image_generator.cc b/blimp/client/feature/compositor/decoding_image_generator.cc
index eaa4f9545be347fd9ceae8858beb48ef608dcc8c..2855d2f1296581fb6ac426d7fddc46398b5404df 100644
--- a/blimp/client/feature/compositor/decoding_image_generator.cc
+++ b/blimp/client/feature/compositor/decoding_image_generator.cc
@@ -6,6 +6,7 @@
#include "base/numerics/safe_conversions.h"
#include "blimp/client/feature/compositor/blimp_image_decoder.h"
+#include "blimp/client/feature/compositor/blob_image_serialization_processor.h"
#include "blimp/common/proto/blob_cache.pb.h"
#include "third_party/libwebp/webp/decode.h"
#include "third_party/libwebp/webp/demux.h"
@@ -34,7 +35,10 @@ DecodingImageGenerator::DecodingImageGenerator(const SkImageInfo info,
const void* data,
size_t size)
: SkImageGenerator(info) {
- BlimpImageDecoder(data, size, &decoded_bitmap_);
+ if (!BlobImageSerializationProcessor::current()->GetAndDecodeBlob(
+ data, size, &decoded_bitmap_)) {
+ DLOG(FATAL) << "GetAndDecodeBlob() failed.";
+ }
}
DecodingImageGenerator::~DecodingImageGenerator() {}
« no previous file with comments | « blimp/client/feature/compositor/client_image_serialization_processor.cc ('k') | blimp/client/session/blimp_client_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698