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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.h

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 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 | 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_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 GpuVideoDecodeAccelerator(IPC::Message::Sender* sender, 24 GpuVideoDecodeAccelerator(IPC::Message::Sender* sender,
25 int32 host_route_id, 25 int32 host_route_id,
26 GpuCommandBufferStub* stub); 26 GpuCommandBufferStub* stub);
27 virtual ~GpuVideoDecodeAccelerator(); 27 virtual ~GpuVideoDecodeAccelerator();
28 28
29 // IPC::Channel::Listener implementation. 29 // IPC::Channel::Listener implementation.
30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 30 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
31 31
32 // media::VideoDecodeAccelerator::Client implementation. 32 // media::VideoDecodeAccelerator::Client implementation.
33 virtual void ProvidePictureBuffers( 33 virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
34 uint32 requested_num_of_buffers, const gfx::Size& dimensions) OVERRIDE; 34 const gfx::Size& dimensions,
35 uint32 texture_target) OVERRIDE;
35 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE; 36 virtual void DismissPictureBuffer(int32 picture_buffer_id) OVERRIDE;
36 virtual void PictureReady(const media::Picture& picture) OVERRIDE; 37 virtual void PictureReady(const media::Picture& picture) OVERRIDE;
37 virtual void NotifyInitializeDone() OVERRIDE; 38 virtual void NotifyInitializeDone() OVERRIDE;
38 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE; 39 virtual void NotifyError(media::VideoDecodeAccelerator::Error error) OVERRIDE;
39 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE; 40 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id) OVERRIDE;
40 virtual void NotifyFlushDone() OVERRIDE; 41 virtual void NotifyFlushDone() OVERRIDE;
41 virtual void NotifyResetDone() OVERRIDE; 42 virtual void NotifyResetDone() OVERRIDE;
42 43
43 // Function to delegate sending to actual sender. 44 // Function to delegate sending to actual sender.
44 virtual bool Send(IPC::Message* message) OVERRIDE; 45 virtual bool Send(IPC::Message* message) OVERRIDE;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Unowned pointer to the underlying GpuCommandBufferStub. 78 // Unowned pointer to the underlying GpuCommandBufferStub.
78 GpuCommandBufferStub* stub_; 79 GpuCommandBufferStub* stub_;
79 80
80 // Pointer to the underlying VideoDecodeAccelerator. 81 // Pointer to the underlying VideoDecodeAccelerator.
81 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; 82 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_;
82 83
83 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); 84 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator);
84 }; 85 };
85 86
86 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ 87 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « content/common/gpu/media/dxva_video_decode_accelerator.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698