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

Side by Side Diff: blimp/client/feature/compositor/client_image_serialization_processor.h

Issue 1982893002: [blimp] Add SkPicture caching support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git merge origin/master 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 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 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_ 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_ 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_H_
7 7
8 #include <memory>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "cc/proto/image_serialization_processor.h" 11 #include "cc/proto/image_serialization_processor.h"
10 #include "third_party/skia/include/core/SkPicture.h" 12 #include "cc/proto/picture_cache.h"
11 13
12 class SkPixelSerializer; 14 class SkPixelSerializer;
13 15
14 namespace blimp { 16 namespace blimp {
15 namespace client { 17 namespace client {
16 18
17 // ClientImageSerializationProcessor provides functionality to deserialize Skia 19 // ClientImageSerializationProcessor provides functionality to deserialize
18 // images. 20 // and temporarily cache Skia images.
19 class ClientImageSerializationProcessor 21 class ClientImageSerializationProcessor
20 : public cc::ImageSerializationProcessor { 22 : public cc::ImageSerializationProcessor {
21 public: 23 public:
22 ClientImageSerializationProcessor(); 24 ClientImageSerializationProcessor();
23 ~ClientImageSerializationProcessor(); 25 ~ClientImageSerializationProcessor();
24 26
25 // cc::ImageSerializationProcessor implementation. 27 // cc::ImageSerializationProcessor implementation.
26 SkPixelSerializer* GetPixelSerializer() override; 28 std::unique_ptr<cc::EnginePictureCache> CreateEnginePictureCache() override;
27 SkPicture::InstallPixelRefProc GetPixelDeserializer() override; 29 std::unique_ptr<cc::ClientPictureCache> CreateClientPictureCache() override;
28 30
29 private: 31 private:
30 SkPicture::InstallPixelRefProc pixel_deserializer_;
31
32 DISALLOW_COPY_AND_ASSIGN(ClientImageSerializationProcessor); 32 DISALLOW_COPY_AND_ASSIGN(ClientImageSerializationProcessor);
33 }; 33 };
34 34
35 } // namespace client 35 } // namespace client
36 } // namespace blimp 36 } // namespace blimp
37 37
38 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_ H_ 38 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_CLIENT_IMAGE_SERIALIZATION_PROCESSOR_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698