OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_AVDA_SHARED_STATE_H_ | 5 #ifndef CONTENT_COMMON_GPU_AVDA_SHARED_STATE_H_ |
6 #define CONTENT_COMMON_GPU_AVDA_SHARED_STATE_H_ | 6 #define CONTENT_COMMON_GPU_AVDA_SHARED_STATE_H_ |
7 | 7 |
8 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
10 #include "media/base/android/media_codec_bridge.h" | 10 #include "media/base/android/media_codec_bridge.h" |
11 #include "media/base/android/sdk_media_codec_bridge.h" | 11 #include "media/base/android/sdk_media_codec_bridge.h" |
12 #include "ui/gl/gl_context.h" | 12 #include "ui/gl/gl_context.h" |
13 #include "ui/gl/gl_image.h" | 13 #include "ui/gl/gl_image.h" |
14 #include "ui/gl/gl_surface.h" | 14 #include "ui/gl/gl_surface.h" |
15 | 15 |
16 namespace gfx { | 16 namespace gfx { |
17 class SurfaceTexture; | 17 class SurfaceTexture; |
18 } | 18 } |
19 | 19 |
20 namespace content { | 20 namespace media { |
21 | 21 |
22 // Shared state to allow communication between the AVDA and the | 22 // Shared state to allow communication between the AVDA and the |
23 // GLImages that configure GL for drawing the frames. | 23 // GLImages that configure GL for drawing the frames. |
24 class AVDASharedState : public base::RefCounted<AVDASharedState> { | 24 class AVDASharedState : public base::RefCounted<AVDASharedState> { |
25 public: | 25 public: |
26 AVDASharedState(); | 26 AVDASharedState(); |
27 | 27 |
28 GLint surface_texture_service_id() const { | 28 GLint surface_texture_service_id() const { |
29 return surface_texture_service_id_; | 29 return surface_texture_service_id_; |
30 } | 30 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 scoped_refptr<gfx::GLContext> context_; | 81 scoped_refptr<gfx::GLContext> context_; |
82 scoped_refptr<gfx::GLSurface> surface_; | 82 scoped_refptr<gfx::GLSurface> surface_; |
83 | 83 |
84 protected: | 84 protected: |
85 virtual ~AVDASharedState(); | 85 virtual ~AVDASharedState(); |
86 | 86 |
87 private: | 87 private: |
88 friend class base::RefCounted<AVDASharedState>; | 88 friend class base::RefCounted<AVDASharedState>; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace content | 91 } // namespace media |
92 | 92 |
93 #endif // CONTENT_COMMON_GPU_AVDA_SHARED_STATE_H_ | 93 #endif // CONTENT_COMMON_GPU_AVDA_SHARED_STATE_H_ |
OLD | NEW |