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

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

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: rebased Created 3 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
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/gpu/android_video_decode_accelerator.cc » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 ~AndroidVideoDecodeAccelerator() override; 73 ~AndroidVideoDecodeAccelerator() override;
74 74
75 // VideoDecodeAccelerator implementation: 75 // VideoDecodeAccelerator implementation:
76 bool Initialize(const Config& config, Client* client) override; 76 bool Initialize(const Config& config, Client* client) override;
77 void Decode(const BitstreamBuffer& bitstream_buffer) override; 77 void Decode(const BitstreamBuffer& bitstream_buffer) override;
78 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override; 78 void AssignPictureBuffers(const std::vector<PictureBuffer>& buffers) override;
79 void ReusePictureBuffer(int32_t picture_buffer_id) override; 79 void ReusePictureBuffer(int32_t picture_buffer_id) override;
80 void Flush() override; 80 void Flush() override;
81 void Reset() override; 81 void Reset() override;
82 void SetSurface(int32_t surface_id) override; 82 void SetSurface(
83 int32_t surface_id,
84 const base::Optional<base::UnguessableToken>& routing_token) override;
83 void Destroy() override; 85 void Destroy() override;
84 bool TryToSetupDecodeOnSeparateThread( 86 bool TryToSetupDecodeOnSeparateThread(
85 const base::WeakPtr<Client>& decode_client, 87 const base::WeakPtr<Client>& decode_client,
86 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner) 88 const scoped_refptr<base::SingleThreadTaskRunner>& decode_task_runner)
87 override; 89 override;
88 90
89 // AVDAStateProvider implementation: 91 // AVDAStateProvider implementation:
90 const gfx::Size& GetSize() const override; 92 const gfx::Size& GetSize() const override;
91 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override; 93 base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const override;
92 // Notifies the client about the error and sets |state_| to |ERROR|. If we're 94 // Notifies the client about the error and sets |state_| to |ERROR|. If we're
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 406
405 // WeakPtrFactory for posting tasks back to |this|. 407 // WeakPtrFactory for posting tasks back to |this|.
406 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 408 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
407 409
408 friend class AndroidVideoDecodeAcceleratorTest; 410 friend class AndroidVideoDecodeAcceleratorTest;
409 }; 411 };
410 412
411 } // namespace media 413 } // namespace media
412 414
413 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 415 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/gpu/android_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698