OLD | NEW |
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_CONTROLLER_H_ | 5 #ifndef CC_TILES_IMAGE_CONTROLLER_H_ |
6 #define CC_TILES_IMAGE_CONTROLLER_H_ | 6 #define CC_TILES_IMAGE_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/containers/flat_map.h" | 12 #include "base/containers/flat_map.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/sequenced_task_runner.h" |
16 #include "base/threading/simple_thread.h" | 17 #include "base/threading/simple_thread.h" |
17 #include "cc/base/unique_notifier.h" | 18 #include "cc/base/unique_notifier.h" |
18 #include "cc/cc_export.h" | 19 #include "cc/cc_export.h" |
19 #include "cc/paint/draw_image.h" | 20 #include "cc/paint/draw_image.h" |
20 #include "cc/raster/tile_task.h" | 21 #include "cc/raster/tile_task.h" |
21 #include "cc/tiles/image_decode_cache.h" | 22 #include "cc/tiles/image_decode_cache.h" |
22 | 23 |
23 namespace cc { | 24 namespace cc { |
24 | 25 |
25 class CC_EXPORT ImageController { | 26 class CC_EXPORT ImageController { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 std::vector<ImageDecodeRequest> orphaned_decode_requests_; | 122 std::vector<ImageDecodeRequest> orphaned_decode_requests_; |
122 | 123 |
123 base::WeakPtrFactory<ImageController> weak_ptr_factory_; | 124 base::WeakPtrFactory<ImageController> weak_ptr_factory_; |
124 | 125 |
125 DISALLOW_COPY_AND_ASSIGN(ImageController); | 126 DISALLOW_COPY_AND_ASSIGN(ImageController); |
126 }; | 127 }; |
127 | 128 |
128 } // namespace cc | 129 } // namespace cc |
129 | 130 |
130 #endif // CC_TILES_IMAGE_CONTROLLER_H_ | 131 #endif // CC_TILES_IMAGE_CONTROLLER_H_ |
OLD | NEW |