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

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

Issue 2365303003: cc: Reorder TileManager shutdown and add debugging information. (Closed)
Patch Set: crash: update Created 4 years, 2 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 | « no previous file | 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 18 matching lines...) Expand all
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( 31 std::vector<scoped_refptr<TileTask>> SetPredecodeImages(
32 std::vector<DrawImage> predecode_images, 32 std::vector<DrawImage> predecode_images,
33 const ImageDecodeController::TracingInfo& tracing_info); 33 const ImageDecodeController::TracingInfo& tracing_info);
34 34
35 private: 35 private:
36 ImageDecodeController* controller_ = nullptr; 36 ImageDecodeController* controller_ = nullptr;
37 std::vector<DrawImage> predecode_locked_images_; 37 std::vector<DrawImage> predecode_locked_images_;
38 38
39 // Debugging information for crbug.com/650234.
40 size_t num_times_controller_was_set_ = 0;
41
39 DISALLOW_COPY_AND_ASSIGN(ImageManager); 42 DISALLOW_COPY_AND_ASSIGN(ImageManager);
40 }; 43 };
41 44
42 } // namespace cc 45 } // namespace cc
43 46
44 #endif // CC_TILES_IMAGE_MANAGER_H_ 47 #endif // CC_TILES_IMAGE_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/tiles/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698