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

Side by Side Diff: cc/resources/video_resource_updater.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + autogen Created 5 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 5 #ifndef CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
6 #define CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 6 #define CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool has_mailbox); 114 bool has_mailbox);
115 void DeleteResource(ResourceList::iterator resource_it); 115 void DeleteResource(ResourceList::iterator resource_it);
116 bool VerifyFrame(const scoped_refptr<media::VideoFrame>& video_frame); 116 bool VerifyFrame(const scoped_refptr<media::VideoFrame>& video_frame);
117 VideoFrameExternalResources CreateForHardwarePlanes( 117 VideoFrameExternalResources CreateForHardwarePlanes(
118 const scoped_refptr<media::VideoFrame>& video_frame); 118 const scoped_refptr<media::VideoFrame>& video_frame);
119 VideoFrameExternalResources CreateForSoftwarePlanes( 119 VideoFrameExternalResources CreateForSoftwarePlanes(
120 const scoped_refptr<media::VideoFrame>& video_frame); 120 const scoped_refptr<media::VideoFrame>& video_frame);
121 121
122 static void RecycleResource(base::WeakPtr<VideoResourceUpdater> updater, 122 static void RecycleResource(base::WeakPtr<VideoResourceUpdater> updater,
123 unsigned resource_id, 123 unsigned resource_id,
124 uint32 sync_point, 124 const gpu::SyncToken& sync_token,
125 bool lost_resource, 125 bool lost_resource,
126 BlockingTaskRunner* main_thread_task_runner); 126 BlockingTaskRunner* main_thread_task_runner);
127 static void ReturnTexture(base::WeakPtr<VideoResourceUpdater> updater, 127 static void ReturnTexture(base::WeakPtr<VideoResourceUpdater> updater,
128 const scoped_refptr<media::VideoFrame>& video_frame, 128 const scoped_refptr<media::VideoFrame>& video_frame,
129 uint32 sync_point, 129 const gpu::SyncToken& sync_token,
130 bool lost_resource, 130 bool lost_resource,
131 BlockingTaskRunner* main_thread_task_runner); 131 BlockingTaskRunner* main_thread_task_runner);
132 132
133 ContextProvider* context_provider_; 133 ContextProvider* context_provider_;
134 ResourceProvider* resource_provider_; 134 ResourceProvider* resource_provider_;
135 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_; 135 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_;
136 std::vector<uint8_t> upload_pixels_; 136 std::vector<uint8_t> upload_pixels_;
137 137
138 // Recycle resources so that we can reduce the number of allocations and 138 // Recycle resources so that we can reduce the number of allocations and
139 // data transfers. 139 // data transfers.
140 ResourceList all_resources_; 140 ResourceList all_resources_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); 142 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
143 }; 143 };
144 144
145 } // namespace cc 145 } // namespace cc
146 146
147 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 147 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698