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

Side by Side Diff: media/gpu/ipc/client/gpu_video_decode_accelerator_host.h

Issue 2881553002: Add |texture_target_| and |pixel_format_| to media::PictureBuffer (Closed)
Patch Set: removed IPC changes 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
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_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Notify |client_| of an error. Posts a task to avoid re-entrancy. 62 // Notify |client_| of an error. Posts a task to avoid re-entrancy.
63 void PostNotifyError(Error); 63 void PostNotifyError(Error);
64 64
65 void Send(IPC::Message* message); 65 void Send(IPC::Message* message);
66 66
67 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU 67 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU
68 // process. Should not be called directly. 68 // process. Should not be called directly.
69 void OnInitializationComplete(bool success); 69 void OnInitializationComplete(bool success);
70 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); 70 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id);
71 void OnProvidePictureBuffer(uint32_t num_requested_buffers, 71 void OnProvidePictureBuffers(uint32_t num_requested_buffers,
72 VideoPixelFormat format, 72 VideoPixelFormat format,
73 uint32_t textures_per_buffer, 73 uint32_t textures_per_buffer,
74 const gfx::Size& dimensions, 74 const gfx::Size& dimensions,
75 uint32_t texture_target); 75 uint32_t texture_target);
76 void OnDismissPictureBuffer(int32_t picture_buffer_id); 76 void OnDismissPictureBuffer(int32_t picture_buffer_id);
77 void OnPictureReady( 77 void OnPictureReady(
78 const AcceleratedVideoDecoderHostMsg_PictureReady_Params& params); 78 const AcceleratedVideoDecoderHostMsg_PictureReady_Params& params);
79 void OnFlushDone(); 79 void OnFlushDone();
80 void OnResetDone(); 80 void OnResetDone();
81 void OnNotifyError(uint32_t error); 81 void OnNotifyError(uint32_t error);
82 82
83 scoped_refptr<gpu::GpuChannelHost> channel_; 83 scoped_refptr<gpu::GpuChannelHost> channel_;
84 84
85 // Route ID for the associated decoder in the GPU process. 85 // Route ID for the associated decoder in the GPU process.
(...skipping 21 matching lines...) Expand all
107 // WeakPtr for posting tasks to ourself. 107 // WeakPtr for posting tasks to ourself.
108 base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_; 108 base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_;
109 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 109 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 111 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
112 }; 112 };
113 113
114 } // namespace media 114 } // namespace media
115 115
116 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 116 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/gpu/ipc/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698