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

Side by Side Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.h

Issue 1942123002: Plumb decoded video pixel format from GPU process to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test on bots Created 4 years, 6 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 (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 MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // capabilities will not contain duplicate supported profile entries. 50 // capabilities will not contain duplicate supported profile entries.
51 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities( 51 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities(
52 const gpu::GpuPreferences& gpu_preferences); 52 const gpu::GpuPreferences& gpu_preferences);
53 53
54 // IPC::Listener implementation. 54 // IPC::Listener implementation.
55 bool OnMessageReceived(const IPC::Message& message) override; 55 bool OnMessageReceived(const IPC::Message& message) override;
56 56
57 // media::VideoDecodeAccelerator::Client implementation. 57 // media::VideoDecodeAccelerator::Client implementation.
58 void NotifyInitializationComplete(bool success) override; 58 void NotifyInitializationComplete(bool success) override;
59 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, 59 void ProvidePictureBuffers(uint32_t requested_num_of_buffers,
60 VideoPixelFormat format,
60 uint32_t textures_per_buffer, 61 uint32_t textures_per_buffer,
61 const gfx::Size& dimensions, 62 const gfx::Size& dimensions,
62 uint32_t texture_target) override; 63 uint32_t texture_target) override;
63 void DismissPictureBuffer(int32_t picture_buffer_id) override; 64 void DismissPictureBuffer(int32_t picture_buffer_id) override;
64 void PictureReady(const media::Picture& picture) override; 65 void PictureReady(const media::Picture& picture) override;
65 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; 66 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override;
66 void NotifyFlushDone() override; 67 void NotifyFlushDone() override;
67 void NotifyResetDone() override; 68 void NotifyResetDone() override;
68 void NotifyError(media::VideoDecodeAccelerator::Error error) override; 69 void NotifyError(media::VideoDecodeAccelerator::Error error) override;
69 70
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // cleared. 160 // cleared.
160 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> 161 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>>
161 uncleared_textures_; 162 uncleared_textures_;
162 163
163 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 164 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
164 }; 165 };
165 166
166 } // namespace media 167 } // namespace media
167 168
168 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ 169 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/common/media_messages.h ('k') | media/gpu/ipc/service/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698