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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.h

Issue 426873004: Pass decoded picture size from VDA to client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use gfx::Size Created 6 years, 4 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 | Annotate | Revision Log
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 CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 void Send(IPC::Message* message); 58 void Send(IPC::Message* message);
59 59
60 // IPC handlers, proxying media::VideoDecodeAccelerator::Client for the GPU 60 // IPC handlers, proxying media::VideoDecodeAccelerator::Client for the GPU
61 // process. Should not be called directly. 61 // process. Should not be called directly.
62 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id); 62 void OnBitstreamBufferProcessed(int32 bitstream_buffer_id);
63 void OnProvidePictureBuffer(uint32 num_requested_buffers, 63 void OnProvidePictureBuffer(uint32 num_requested_buffers,
64 const gfx::Size& dimensions, 64 const gfx::Size& dimensions,
65 uint32 texture_target); 65 uint32 texture_target);
66 void OnDismissPictureBuffer(int32 picture_buffer_id); 66 void OnDismissPictureBuffer(int32 picture_buffer_id);
67 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id); 67 void OnPictureReady(int32 picture_buffer_id, int32 bitstream_buffer_id,
68 const gfx::Size& size);
68 void OnFlushDone(); 69 void OnFlushDone();
69 void OnResetDone(); 70 void OnResetDone();
70 void OnNotifyError(uint32 error); 71 void OnNotifyError(uint32 error);
71 72
72 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU 73 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU
73 // process. |channel_| outlives |impl_|, so the reference is always valid as 74 // process. |channel_| outlives |impl_|, so the reference is always valid as
74 // long as it is not NULL. 75 // long as it is not NULL.
75 GpuChannelHost* channel_; 76 GpuChannelHost* channel_;
76 77
77 // Route ID for the associated decoder in the GPU process. 78 // Route ID for the associated decoder in the GPU process.
(...skipping 12 matching lines...) Expand all
90 91
91 // WeakPtr factory for posting tasks back to itself. 92 // WeakPtr factory for posting tasks back to itself.
92 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_; 93 base::WeakPtrFactory<GpuVideoDecodeAcceleratorHost> weak_this_factory_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 95 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
95 }; 96 };
96 97
97 } // namespace content 98 } // namespace content
98 99
99 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 100 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698