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

Side by Side Diff: media/mojo/clients/mojo_video_decoder.h

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Implement MockGpuVideoAcceleratorFactories::GetCommandBufferRouteId(). Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_MOJO_CLIENTS_MOJO_VIDEO_DECODER_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_VIDEO_DECODER_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_VIDEO_DECODER_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_VIDEO_DECODER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/video_decoder.h" 10 #include "media/base/video_decoder.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool needs_bitstream_conversion, 54 bool needs_bitstream_conversion,
55 int32_t max_decode_requests); 55 int32_t max_decode_requests);
56 void OnDecodeDone(uint64_t decode_id, DecodeStatus status); 56 void OnDecodeDone(uint64_t decode_id, DecodeStatus status);
57 void OnResetDone(); 57 void OnResetDone();
58 58
59 void BindRemoteDecoder(); 59 void BindRemoteDecoder();
60 60
61 // Cleans up callbacks and blocks future calls. 61 // Cleans up callbacks and blocks future calls.
62 void Stop(); 62 void Stop();
63 63
64 // Task runner that the decoder runs on (media thread).
64 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
65 GpuVideoAcceleratorFactories* gpu_factories_;
66 66
67 // Used to pass the remote decoder from the constructor (on the main thread) 67 // Used to pass the remote decoder from the constructor (on the main thread)
68 // to Initialize() (on the media thread). 68 // to Initialize() (on the media thread).
69 mojom::VideoDecoderPtrInfo remote_decoder_info_; 69 mojom::VideoDecoderPtrInfo remote_decoder_info_;
70 70
71 GpuVideoAcceleratorFactories* gpu_factories_ = nullptr;
72
71 InitCB init_cb_; 73 InitCB init_cb_;
72 OutputCB output_cb_; 74 OutputCB output_cb_;
73 uint64_t decode_counter_ = 0; 75 uint64_t decode_counter_ = 0;
74 std::map<uint64_t, DecodeCB> pending_decodes_; 76 std::map<uint64_t, DecodeCB> pending_decodes_;
75 base::Closure reset_cb_; 77 base::Closure reset_cb_;
76 78
77 mojom::VideoDecoderPtr remote_decoder_; 79 mojom::VideoDecoderPtr remote_decoder_;
78 std::unique_ptr<MojoDecoderBufferWriter> mojo_decoder_buffer_writer_; 80 std::unique_ptr<MojoDecoderBufferWriter> mojo_decoder_buffer_writer_;
79 bool remote_decoder_bound_ = false; 81 bool remote_decoder_bound_ = false;
80 bool has_connection_error_ = false; 82 bool has_connection_error_ = false;
81 mojo::AssociatedBinding<VideoDecoderClient> client_binding_; 83 mojo::AssociatedBinding<VideoDecoderClient> client_binding_;
82 84
83 bool initialized_ = false; 85 bool initialized_ = false;
84 bool needs_bitstream_conversion_ = false; 86 bool needs_bitstream_conversion_ = false;
85 int32_t max_decode_requests_ = 1; 87 int32_t max_decode_requests_ = 1;
86 88
87 DISALLOW_COPY_AND_ASSIGN(MojoVideoDecoder); 89 DISALLOW_COPY_AND_ASSIGN(MojoVideoDecoder);
88 }; 90 };
89 91
90 } // namespace media 92 } // namespace media
91 93
92 #endif // MEDIA_MOJO_CLIENTS_MOJO_VIDEO_DECODER_H_ 94 #endif // MEDIA_MOJO_CLIENTS_MOJO_VIDEO_DECODER_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/media_gpu_channel_manager.cc ('k') | media/mojo/clients/mojo_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698