OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <dlfcn.h> | 5 #include <dlfcn.h> |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 | 161 |
162 int32 input_id() { | 162 int32 input_id() { |
163 return input_id_; | 163 return input_id_; |
164 } | 164 } |
165 | 165 |
166 int poc() { | 166 int poc() { |
167 return poc_; | 167 return poc_; |
168 } | 168 } |
169 | 169 |
170 Pixmap x_pixmap() { | |
171 return x_pixmap_; | |
172 } | |
173 | |
174 // Associate the surface with |input_id| and |poc|, and make it unavailable | 170 // Associate the surface with |input_id| and |poc|, and make it unavailable |
175 // (in use). | 171 // (in use). |
176 void Acquire(int32 input_id, int poc); | 172 void Acquire(int32 input_id, int poc); |
177 | 173 |
178 // Make this surface available, ready to be reused. | 174 // Make this surface available, ready to be reused. |
179 void Release(); | 175 void Release(); |
180 | 176 |
181 // Has to be called before output to sync texture contents. | 177 // Has to be called before output to sync texture contents. |
182 // Returns true if successful. | 178 // Returns true if successful. |
183 bool Sync(); | 179 bool Sync(); |
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2157 VAAPI_SyncSurface && | 2153 VAAPI_SyncSurface && |
2158 VAAPI_BeginPicture && | 2154 VAAPI_BeginPicture && |
2159 VAAPI_RenderPicture && | 2155 VAAPI_RenderPicture && |
2160 VAAPI_EndPicture && | 2156 VAAPI_EndPicture && |
2161 VAAPI_CreateBuffer && | 2157 VAAPI_CreateBuffer && |
2162 VAAPI_DestroyBuffer && | 2158 VAAPI_DestroyBuffer && |
2163 VAAPI_ErrorStr; | 2159 VAAPI_ErrorStr; |
2164 } | 2160 } |
2165 | 2161 |
2166 } // namespace content | 2162 } // namespace content |
OLD | NEW |