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

Side by Side Diff: media/gpu/avda_shared_state.h

Issue 2533273002: media: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
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 MEDIA_GPU_AVDA_SHARED_STATE_H_ 5 #ifndef MEDIA_GPU_AVDA_SHARED_STATE_H_
6 #define MEDIA_GPU_AVDA_SHARED_STATE_H_ 6 #define MEDIA_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 "ui/gl/gl_bindings.h" 11 #include "ui/gl/gl_bindings.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 gl { 16 namespace gl {
17 class SurfaceTexture; 17 class SurfaceTexture;
18 } 18 }
19 19
20 namespace media { 20 namespace media {
21 21
22 class AVDACodecImage;
23
24 // Shared state to allow communication between the AVDA and the 22 // Shared state to allow communication between the AVDA and the
25 // GLImages that configure GL for drawing the frames. 23 // GLImages that configure GL for drawing the frames.
26 class AVDASharedState : public base::RefCounted<AVDASharedState> { 24 class AVDASharedState : public base::RefCounted<AVDASharedState> {
27 public: 25 public:
28 AVDASharedState(); 26 AVDASharedState();
29 27
30 GLuint surface_texture_service_id() const { 28 GLuint surface_texture_service_id() const {
31 return surface_texture_service_id_; 29 return surface_texture_service_id_;
32 } 30 }
33 31
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 103
106 class OnFrameAvailableHandler; 104 class OnFrameAvailableHandler;
107 scoped_refptr<OnFrameAvailableHandler> on_frame_available_handler_; 105 scoped_refptr<OnFrameAvailableHandler> on_frame_available_handler_;
108 106
109 DISALLOW_COPY_AND_ASSIGN(AVDASharedState); 107 DISALLOW_COPY_AND_ASSIGN(AVDASharedState);
110 }; 108 };
111 109
112 } // namespace media 110 } // namespace media
113 111
114 #endif // MEDIA_GPU_AVDA_SHARED_STATE_H_ 112 #endif // MEDIA_GPU_AVDA_SHARED_STATE_H_
OLDNEW
« no previous file with comments | « media/formats/mp2t/es_parser_mpeg1audio.h ('k') | media/gpu/ipc/service/gpu_video_encode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698