OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/common/gpu/media/va_surface.h" | 5 #include "content/common/gpu/media/va_surface.h" |
6 #include "content/common/gpu/media/vaapi_tfp_picture.h" | 6 #include "content/common/gpu/media/vaapi_tfp_picture.h" |
7 #include "content/common/gpu/media/vaapi_wrapper.h" | 7 #include "content/common/gpu/media/vaapi_wrapper.h" |
8 #include "ui/gfx/x/x11_types.h" | 8 #include "ui/gfx/x/x11_types.h" |
9 #include "ui/gl/gl_bindings.h" | 9 #include "ui/gl/gl_bindings.h" |
10 #include "ui/gl/gl_image_glx.h" | 10 #include "ui/gl/gl_image_glx.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 return true; | 68 return true; |
69 } | 69 } |
70 | 70 |
71 bool VaapiTFPPicture::DownloadFromSurface( | 71 bool VaapiTFPPicture::DownloadFromSurface( |
72 const scoped_refptr<VASurface>& va_surface) { | 72 const scoped_refptr<VASurface>& va_surface) { |
73 return vaapi_wrapper_->PutSurfaceIntoPixmap(va_surface->id(), x_pixmap_, | 73 return vaapi_wrapper_->PutSurfaceIntoPixmap(va_surface->id(), x_pixmap_, |
74 va_surface->size()); | 74 va_surface->size()); |
75 } | 75 } |
76 | 76 |
| 77 scoped_refptr<gfx::GLImage> VaapiTFPPicture::GetImageToBind() { |
| 78 return nullptr; |
| 79 } |
| 80 |
77 } // namespace content | 81 } // namespace content |
OLD | NEW |