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

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: Add |texture_target_| and |pixel_format_| to media::PictureBuffer 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 // Notify |client_| of an error. Posts a task to avoid re-entrancy. 61 // Notify |client_| of an error. Posts a task to avoid re-entrancy.
62 void PostNotifyError(Error); 62 void PostNotifyError(Error);
63 63
64 void Send(IPC::Message* message); 64 void Send(IPC::Message* message);
65 65
66 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU 66 // IPC handlers, proxying VideoDecodeAccelerator::Client for the GPU
67 // process. Should not be called directly. 67 // process. Should not be called directly.
68 void OnInitializationComplete(bool success); 68 void OnInitializationComplete(bool success);
69 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id); 69 void OnBitstreamBufferProcessed(int32_t bitstream_buffer_id);
70 void OnProvidePictureBuffer(uint32_t num_requested_buffers, 70 void OnProvidePictureBuffers(uint32_t num_requested_buffers,
71 VideoPixelFormat format, 71 VideoPixelFormat format,
72 uint32_t textures_per_buffer, 72 uint32_t textures_per_buffer,
73 const gfx::Size& dimensions, 73 const gfx::Size& dimensions,
74 uint32_t texture_target); 74 uint32_t texture_target);
75 void OnDismissPictureBuffer(int32_t picture_buffer_id); 75 void OnDismissPictureBuffer(int32_t picture_buffer_id);
76 void OnPictureReady( 76 void OnPictureReady(
77 const AcceleratedVideoDecoderHostMsg_PictureReady_Params& params); 77 const AcceleratedVideoDecoderHostMsg_PictureReady_Params& params);
78 void OnFlushDone(); 78 void OnFlushDone();
79 void OnResetDone(); 79 void OnResetDone();
80 void OnNotifyError(uint32_t error); 80 void OnNotifyError(uint32_t error);
81 81
82 scoped_refptr<gpu::GpuChannelHost> channel_; 82 scoped_refptr<gpu::GpuChannelHost> channel_;
83 83
84 // Route ID for the associated decoder in the GPU process. 84 // Route ID for the associated decoder in the GPU process.
(...skipping 21 matching lines...) Expand all
106 // WeakPtr for posting tasks to ourself. 106 // WeakPtr for posting tasks to ourself.
107 base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_; 107 base::WeakPtr<GpuVideoDecodeAcceleratorHost> weak_this_;
108 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 108 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 110 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
111 }; 111 };
112 112
113 } // namespace media 113 } // namespace media
114 114
115 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 115 #endif // MEDIA_GPU_IPC_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698