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

Side by Side Diff: blimp/client/feature/compositor/webp_decoder.cc

Issue 1955493002: Move BlimpImageSerializationProcessor and WebPDecoder to //blimp/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/common/compositor/webp_decoder.h" 5 #include "blimp/client/feature/compositor/webp_decoder.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "blimp/common/blob_cache/blob_cache.h" 11 #include "blimp/common/blob_cache/blob_cache.h"
12 #include "blimp/common/blob_cache/id_util.h" 12 #include "blimp/common/blob_cache/id_util.h"
13 #include "blimp/common/blob_cache/in_memory_blob_cache.h" 13 #include "blimp/common/blob_cache/in_memory_blob_cache.h"
14 #include "blimp/common/proto/blob_cache.pb.h" 14 #include "blimp/common/proto/blob_cache.pb.h"
15 #include "third_party/libwebp/webp/decode.h" 15 #include "third_party/libwebp/webp/decode.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 << " size: " << webp_data.size; 129 << " size: " << webp_data.size;
130 BlobDataPtr to_cache(new BlobData(std::string( 130 BlobDataPtr to_cache(new BlobData(std::string(
131 reinterpret_cast<const char*>(webp_data.bytes), webp_data.size))); 131 reinterpret_cast<const char*>(webp_data.bytes), webp_data.size)));
132 g_blob_cache.Get().Put(deserialized.id(), std::move(to_cache)); 132 g_blob_cache.Get().Put(deserialized.id(), std::move(to_cache));
133 } 133 }
134 134
135 return true; 135 return true;
136 } 136 }
137 137
138 } // namespace blimp 138 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698