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

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

Issue 2857923004: cc: Keep PaintImage in DrawImage. (Closed)
Patch Set: rebased Created 3 years, 7 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
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
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 std::map<ImageDecodeRequestId, ImageDecodeRequest> 113 std::map<ImageDecodeRequestId, ImageDecodeRequest>
114 requests_needing_completion_; 114 requests_needing_completion_;
115 bool abort_tasks_ = false; 115 bool abort_tasks_ = false;
116 // Orphaned requests are requests that were either in queue or needed a 116 // Orphaned requests are requests that were either in queue or needed a
117 // completion callback when we set the decode cache to be nullptr. When a new 117 // completion callback when we set the decode cache to be nullptr. When a new
118 // decode cache is set, these requests are re-enqueued again with tasks 118 // decode cache is set, these requests are re-enqueued again with tasks
119 // generated by the new cache. Note that when the cache is set, then aside 119 // generated by the new cache. Note that when the cache is set, then aside
120 // from generating new tasks, this vector should be empty. 120 // from generating new tasks, this vector should be empty.
121 std::vector<ImageDecodeRequest> orphaned_decode_requests_; 121 std::vector<ImageDecodeRequest> orphaned_decode_requests_;
122 122
123 // The id used for DrawImages created by the controller for requests made to
124 // the image decode service.
125 PaintImage::Id paint_image_id_;
126
123 base::WeakPtrFactory<ImageController> weak_ptr_factory_; 127 base::WeakPtrFactory<ImageController> weak_ptr_factory_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(ImageController); 129 DISALLOW_COPY_AND_ASSIGN(ImageController);
126 }; 130 };
127 131
128 } // namespace cc 132 } // namespace cc
129 133
130 #endif // CC_TILES_IMAGE_CONTROLLER_H_ 134 #endif // CC_TILES_IMAGE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698