OLD | NEW |
---|---|
(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 #ifndef CC_TILES_IMAGE_MANAGER_H_ | |
6 #define CC_TILES_IMAGE_MANAGER_H_ | |
7 | |
8 #include <vector> | |
9 | |
10 #include "base/macros.h" | |
11 #include "base/memory/ref_counted.h" | |
12 #include "cc/base/cc_export.h" | |
13 #include "cc/playback/draw_image.h" | |
14 #include "cc/raster/tile_task.h" | |
15 #include "cc/tiles/image_decode_controller.h" | |
16 | |
17 namespace cc { | |
18 | |
19 class CC_EXPORT ImageManager { | |
enne (OOO)
2016/09/15 17:42:15
What else do you see going into this class? I thin
vmpstr
2016/09/15 18:16:35
The next thing I was thinking is "SetPredecodeImag
| |
20 public: | |
21 ImageManager(); | |
22 ~ImageManager(); | |
23 | |
24 void SetImageDecodeController(ImageDecodeController* controller); | |
25 void GetTasksForImagesAndRef( | |
26 std::vector<DrawImage>* images, | |
27 std::vector<scoped_refptr<TileTask>>* tasks, | |
28 const ImageDecodeController::TracingInfo& tracing_info); | |
29 void UnrefImages(const std::vector<DrawImage>& images); | |
30 void ReduceMemoryUsage(); | |
31 | |
32 private: | |
33 ImageDecodeController* controller_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(ImageManager); | |
36 }; | |
37 | |
38 } // namespace cc | |
39 | |
40 #endif // CC_TILES_IMAGE_MANAGER_H_ | |
OLD | NEW |