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

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

Issue 132233041: Add gpu::MailboxHolder to hold state for a gpu::Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ff7262fa Rebase. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/transferable_resource.cc ('k') | cc/resources/video_resource_updater.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 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const scoped_refptr<media::VideoFrame>& video_frame); 97 const scoped_refptr<media::VideoFrame>& video_frame);
98 98
99 struct RecycleResourceData { 99 struct RecycleResourceData {
100 unsigned resource_id; 100 unsigned resource_id;
101 gfx::Size resource_size; 101 gfx::Size resource_size;
102 ResourceFormat resource_format; 102 ResourceFormat resource_format;
103 gpu::Mailbox mailbox; 103 gpu::Mailbox mailbox;
104 }; 104 };
105 static void RecycleResource(base::WeakPtr<VideoResourceUpdater> updater, 105 static void RecycleResource(base::WeakPtr<VideoResourceUpdater> updater,
106 RecycleResourceData data, 106 RecycleResourceData data,
107 unsigned sync_point, 107 uint32 sync_point,
108 bool lost_resource); 108 bool lost_resource);
109 109
110 ContextProvider* context_provider_; 110 ContextProvider* context_provider_;
111 ResourceProvider* resource_provider_; 111 ResourceProvider* resource_provider_;
112 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_; 112 scoped_ptr<media::SkCanvasVideoRenderer> video_renderer_;
113 113
114 std::vector<unsigned> all_resources_; 114 std::vector<unsigned> all_resources_;
115 std::vector<PlaneResource> recycled_resources_; 115 std::vector<PlaneResource> recycled_resources_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater); 117 DISALLOW_COPY_AND_ASSIGN(VideoResourceUpdater);
118 }; 118 };
119 119
120 } // namespace cc 120 } // namespace cc
121 121
122 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_ 122 #endif // CC_RESOURCES_VIDEO_RESOURCE_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/transferable_resource.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698