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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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 CC_BLIMP_ENGINE_PICTURE_CACHE_H_ 5 #ifndef CC_BLIMP_ENGINE_PICTURE_CACHE_H_
6 #define CC_BLIMP_ENGINE_PICTURE_CACHE_H_ 6 #define CC_BLIMP_ENGINE_PICTURE_CACHE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 class SkPicture; 10 #include "skia/ext/cdl_common.h"
11 11
12 namespace cc { 12 namespace cc {
13 struct PictureData; 13 struct PictureData;
14 14
15 // EnginePictureCache provides functionaltiy for marking when SkPictures are in 15 // EnginePictureCache provides functionaltiy for marking when SkPictures are in
16 // use an when they stop being in use. Based on this, a PictureCacheUpdate can 16 // use an when they stop being in use. Based on this, a PictureCacheUpdate can
17 // be retrieved that includes all the new items since last time it was called. 17 // be retrieved that includes all the new items since last time it was called.
18 // This PictureCacheUpdate is then supposed to be sent to the client. 18 // This PictureCacheUpdate is then supposed to be sent to the client.
19 class EnginePictureCache { 19 class EnginePictureCache {
20 public: 20 public:
21 virtual ~EnginePictureCache() {} 21 virtual ~EnginePictureCache() {}
22 22
23 // MarkUsed must be called when an SkPicture needs to available on the client. 23 // MarkUsed must be called when an SkPicture needs to available on the client.
24 virtual void MarkUsed(const SkPicture* picture) = 0; 24 virtual void MarkUsed(const CdlPicture* picture) = 0;
25 25
26 // Called when a PictureCacheUpdate is going to be sent to the client. This 26 // Called when a PictureCacheUpdate is going to be sent to the client. This
27 // must contain all the new SkPictures that are in use since last call. 27 // must contain all the new SkPictures that are in use since last call.
28 virtual std::vector<PictureData> CalculateCacheUpdateAndFlush() = 0; 28 virtual std::vector<PictureData> CalculateCacheUpdateAndFlush() = 0;
29 }; 29 };
30 30
31 } // namespace cc 31 } // namespace cc
32 32
33 #endif // CC_BLIMP_ENGINE_PICTURE_CACHE_H_ 33 #endif // CC_BLIMP_ENGINE_PICTURE_CACHE_H_
OLDNEW
« no previous file with comments | « cc/blimp/compositor_state_deserializer_unittest.cc ('k') | cc/blimp/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698