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

Side by Side Diff: content/common/gpu/media/rendering_helper.h

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
OLDNEW
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 #ifndef CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
6 #define CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace base { 10 namespace base {
(...skipping 22 matching lines...) Expand all
33 int width, 33 int width,
34 int height, 34 int height,
35 base::WaitableEvent* done) = 0; 35 base::WaitableEvent* done) = 0;
36 36
37 // Undo the effects of Initialize() and signal |*done|. 37 // Undo the effects of Initialize() and signal |*done|.
38 virtual void UnInitialize(base::WaitableEvent* done) = 0; 38 virtual void UnInitialize(base::WaitableEvent* done) = 0;
39 39
40 // Return a newly-created GLES2 texture id rendering to a specific window, and 40 // Return a newly-created GLES2 texture id rendering to a specific window, and
41 // signal |*done|. 41 // signal |*done|.
42 virtual void CreateTexture(int window_id, 42 virtual void CreateTexture(int window_id,
43 int texture_target,
Ami GONE FROM CHROMIUM 2012/05/23 23:42:33 uint32 to match other GL types
sail 2012/05/29 18:58:09 Done.
43 uint32* texture_id, 44 uint32* texture_id,
44 base::WaitableEvent* done) = 0; 45 base::WaitableEvent* done) = 0;
45 46
46 // Render |texture_id| to the screen (unless |suppress_swap_to_display_|). 47 // Render |texture_id| to the screen (unless |suppress_swap_to_display_|).
47 virtual void RenderTexture(uint32 texture_id) = 0; 48 virtual void RenderTexture(uint32 texture_id) = 0;
48 49
49 // Delete |texture_id|. 50 // Delete |texture_id|.
50 virtual void DeleteTexture(uint32 texture_id) = 0; 51 virtual void DeleteTexture(uint32 texture_id) = 0;
51 52
52 // Get the platform specific handle to the OpenGL context. 53 // Get the platform specific handle to the OpenGL context.
53 virtual void* GetGLContext() = 0; 54 virtual void* GetGLContext() = 0;
54 55
55 // Get the platform specific handle to the OpenGL display. 56 // Get the platform specific handle to the OpenGL display.
56 virtual void* GetGLDisplay() = 0; 57 virtual void* GetGLDisplay() = 0;
57 }; 58 };
58 59
59 } // namespace video_test_util 60 } // namespace video_test_util
60 61
61 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_ 62 #endif // CONTENT_COMMON_GPU_MEDIA_RENDERING_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698