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

Side by Side Diff: cc/tiles/image_manager.h

Issue 2339703005: cc: Add ImageManager to keep all the image locking in the same place. (Closed)
Patch Set: 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
OLDNEW
(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_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/tiles/image_manager.cc » ('j') | cc/tiles/image_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698