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

Side by Side Diff: content/common/gpu/media/vaapi_picture.cc

Issue 858653002: vaapi plumbing to allow hardware video overlays (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittests build Created 5 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
« no previous file with comments | « content/common/gpu/media/vaapi_picture.h ('k') | content/common/gpu/media/vaapi_tfp_picture.h » ('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 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/vaapi_picture.h" 5 #include "content/common/gpu/media/vaapi_picture.h"
6 #include "content/common/gpu/media/vaapi_wrapper.h" 6 #include "content/common/gpu/media/vaapi_wrapper.h"
7 #include "ui/gl/gl_bindings.h" 7 #include "ui/gl/gl_bindings.h"
8 #include "ui/gl/gl_implementation.h" 8 #include "ui/gl/gl_implementation.h"
9 9
10 #if defined(USE_X11) 10 #if defined(USE_X11)
(...skipping 19 matching lines...) Expand all
30 picture.reset(new VaapiDrmPicture(vaapi_wrapper, make_context_current, 30 picture.reset(new VaapiDrmPicture(vaapi_wrapper, make_context_current,
31 picture_buffer_id, texture_id, size)); 31 picture_buffer_id, texture_id, size));
32 #endif // USE_X11 32 #endif // USE_X11
33 33
34 if (picture.get() && !picture->Initialize()) 34 if (picture.get() && !picture->Initialize())
35 picture.reset(); 35 picture.reset();
36 36
37 return picture; 37 return picture;
38 } 38 }
39 39
40 bool VaapiPicture::AllowOverlay() const {
41 return false;
42 }
43
40 // static 44 // static
41 uint32 VaapiPicture::GetGLTextureTarget() { 45 uint32 VaapiPicture::GetGLTextureTarget() {
42 #if defined(USE_OZONE) 46 #if defined(USE_OZONE)
43 return GL_TEXTURE_EXTERNAL_OES; 47 return GL_TEXTURE_EXTERNAL_OES;
44 #else 48 #else
45 return GL_TEXTURE_2D; 49 return GL_TEXTURE_2D;
46 #endif 50 #endif
47 } 51 }
48 52
49 } // namespace content 53 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/media/vaapi_picture.h ('k') | content/common/gpu/media/vaapi_tfp_picture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698