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

Side by Side Diff: blimp/common/compositor/blimp_image_serialization_processor.cc

Issue 1955493002: Move BlimpImageSerializationProcessor and WebPDecoder to //blimp/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments, moved to blimp::client namespace, renamed webp_decoder.[cc|h] according to func… Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "blimp/common/compositor/blimp_image_serialization_processor.h"
6
7 #include <stddef.h>
8 #include <vector>
9
10 #include "base/logging.h"
11 #include "blimp/common/compositor/webp_decoder.h"
12 #include "third_party/libwebp/webp/encode.h"
13 #include "third_party/skia/include/core/SkData.h"
14 #include "third_party/skia/include/core/SkPicture.h"
15 #include "third_party/skia/include/core/SkPixelSerializer.h"
16
17 namespace blimp {
18
19 BlimpImageSerializationProcessor::BlimpImageSerializationProcessor(Mode mode) {
20 DCHECK(mode == Mode::DESERIALIZATION);
21 pixel_serializer_ = nullptr;
22 pixel_deserializer_ = &WebPDecoder;
23 }
24
25 BlimpImageSerializationProcessor::~BlimpImageSerializationProcessor() {}
26
27 SkPixelSerializer* BlimpImageSerializationProcessor::GetPixelSerializer() {
28 return pixel_serializer_.get();
29 }
30
31 SkPicture::InstallPixelRefProc
32 BlimpImageSerializationProcessor::GetPixelDeserializer() {
33 return pixel_deserializer_;
34 }
35
36 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/common/compositor/blimp_image_serialization_processor.h ('k') | blimp/common/compositor/webp_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698