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

Side by Side Diff: cc/blimp/image_serialization_processor.h

Issue 2292723003: Move remaining Blimp feature code to core. (Closed)
Patch Set: Fix build break Created 4 years, 3 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
« no previous file with comments | « blimp/engine/browser_tests/engine_browsertest.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ 5 #ifndef CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_
6 #define CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ 6 #define CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "cc/blimp/client_picture_cache.h"
10 #include "cc/blimp/engine_picture_cache.h"
11 #include "third_party/skia/include/core/SkPicture.h"
12
13 class SkPixelSerializer;
14 9
15 namespace cc { 10 namespace cc {
16 11
12 class ClientPictureCache;
13 class EnginePictureCache;
14
17 // ImageSerializationProcessor provides functionality to serialize, 15 // ImageSerializationProcessor provides functionality to serialize,
18 // deserialize and cache Skia images. 16 // deserialize and cache Skia images.
19 class ImageSerializationProcessor { 17 class ImageSerializationProcessor {
20 public: 18 public:
21 virtual ~ImageSerializationProcessor() {} 19 virtual ~ImageSerializationProcessor() {}
22 20
23 virtual std::unique_ptr<EnginePictureCache> CreateEnginePictureCache() = 0; 21 virtual std::unique_ptr<EnginePictureCache> CreateEnginePictureCache() = 0;
24 virtual std::unique_ptr<ClientPictureCache> CreateClientPictureCache() = 0; 22 virtual std::unique_ptr<ClientPictureCache> CreateClientPictureCache() = 0;
25 }; 23 };
26 24
27 } // namespace cc 25 } // namespace cc
28 26
29 #endif // CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_ 27 #endif // CC_BLIMP_IMAGE_SERIALIZATION_PROCESSOR_H_
OLDNEW
« no previous file with comments | « blimp/engine/browser_tests/engine_browsertest.cc ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698