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

Side by Side Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.h

Issue 7779001: Replace the use of an int32* with a proper struct for decoder configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replaced struct with explicit profile parameter. Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 5 #ifndef CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
6 #define CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 6 #define CONTENT_RENDERER_GPU_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 15 matching lines...) Expand all
26 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel, 26 GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
27 int32 decoder_route_id, 27 int32 decoder_route_id,
28 media::VideoDecodeAccelerator::Client* client); 28 media::VideoDecodeAccelerator::Client* client);
29 virtual ~GpuVideoDecodeAcceleratorHost(); 29 virtual ~GpuVideoDecodeAcceleratorHost();
30 30
31 // IPC::Channel::Listener implementation. 31 // IPC::Channel::Listener implementation.
32 virtual void OnChannelError() OVERRIDE; 32 virtual void OnChannelError() OVERRIDE;
33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 33 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
34 34
35 // media::VideoDecodeAccelerator implementation. 35 // media::VideoDecodeAccelerator implementation.
36 virtual bool Initialize(const std::vector<int32>& configs) OVERRIDE; 36 virtual bool Initialize(Profile profile) OVERRIDE;
37 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 37 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
38 virtual void AssignPictureBuffers( 38 virtual void AssignPictureBuffers(
39 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 39 const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
40 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 40 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
41 virtual void Flush() OVERRIDE; 41 virtual void Flush() OVERRIDE;
42 virtual void Reset() OVERRIDE; 42 virtual void Reset() OVERRIDE;
43 virtual void Destroy() OVERRIDE; 43 virtual void Destroy() OVERRIDE;
44 44
45 private: 45 private:
46 void Send(IPC::Message* message); 46 void Send(IPC::Message* message);
(...skipping 17 matching lines...) Expand all
64 // attempting to use an outdated or reused route id. 64 // attempting to use an outdated or reused route id.
65 int32 decoder_route_id_; 65 int32 decoder_route_id_;
66 66
67 // Reference to the client that will receive callbacks from the decoder. 67 // Reference to the client that will receive callbacks from the decoder.
68 media::VideoDecodeAccelerator::Client* client_; 68 media::VideoDecodeAccelerator::Client* client_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost); 70 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecodeAcceleratorHost);
71 }; 71 };
72 72
73 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_ 73 #endif // CONTENT_RENDERER_GPU_GPU_VIDEO_DECODE_ACCELERATOR_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698