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

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

Issue 2345833002: cc: Move (partially) the predecode image tracking to ImageManager. (Closed)
Patch Set: initialize var 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 | « cc/BUILD.gn ('k') | cc/tiles/image_manager.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_TILES_IMAGE_MANAGER_H_ 5 #ifndef CC_TILES_IMAGE_MANAGER_H_
6 #define CC_TILES_IMAGE_MANAGER_H_ 6 #define CC_TILES_IMAGE_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 ImageManager(); 21 ImageManager();
22 ~ImageManager(); 22 ~ImageManager();
23 23
24 void SetImageDecodeController(ImageDecodeController* controller); 24 void SetImageDecodeController(ImageDecodeController* controller);
25 void GetTasksForImagesAndRef( 25 void GetTasksForImagesAndRef(
26 std::vector<DrawImage>* images, 26 std::vector<DrawImage>* images,
27 std::vector<scoped_refptr<TileTask>>* tasks, 27 std::vector<scoped_refptr<TileTask>>* tasks,
28 const ImageDecodeController::TracingInfo& tracing_info); 28 const ImageDecodeController::TracingInfo& tracing_info);
29 void UnrefImages(const std::vector<DrawImage>& images); 29 void UnrefImages(const std::vector<DrawImage>& images);
30 void ReduceMemoryUsage(); 30 void ReduceMemoryUsage();
31 std::vector<scoped_refptr<TileTask>> SetPredecodeImages(
32 std::vector<DrawImage> predecode_images,
33 const ImageDecodeController::TracingInfo& tracing_info);
31 34
32 private: 35 private:
33 ImageDecodeController* controller_; 36 ImageDecodeController* controller_ = nullptr;
37 std::vector<DrawImage> predecode_locked_images_;
34 38
35 DISALLOW_COPY_AND_ASSIGN(ImageManager); 39 DISALLOW_COPY_AND_ASSIGN(ImageManager);
36 }; 40 };
37 41
38 } // namespace cc 42 } // namespace cc
39 43
40 #endif // CC_TILES_IMAGE_MANAGER_H_ 44 #endif // CC_TILES_IMAGE_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/tiles/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698