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

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

Issue 317083003: Merge VideoDecodeAcceleratorImpl with VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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_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 26 matching lines...) Expand all
37 // media::VideoDecodeAccelerator implementation. 37 // media::VideoDecodeAccelerator implementation.
38 virtual bool Initialize(media::VideoCodecProfile profile, 38 virtual bool Initialize(media::VideoCodecProfile profile,
39 Client* client) OVERRIDE; 39 Client* client) OVERRIDE;
40 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE; 40 virtual void Decode(const media::BitstreamBuffer& bitstream_buffer) OVERRIDE;
41 virtual void AssignPictureBuffers( 41 virtual void AssignPictureBuffers(
42 const std::vector<media::PictureBuffer>& buffers) OVERRIDE; 42 const std::vector<media::PictureBuffer>& buffers) OVERRIDE;
43 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE; 43 virtual void ReusePictureBuffer(int32 picture_buffer_id) OVERRIDE;
44 virtual void Flush() OVERRIDE; 44 virtual void Flush() OVERRIDE;
45 virtual void Reset() OVERRIDE; 45 virtual void Reset() OVERRIDE;
46 virtual void Destroy() OVERRIDE; 46 virtual void Destroy() OVERRIDE;
47 virtual bool CanDecodeOnIOThread() OVERRIDE;
47 48
48 // CommandBufferProxyImpl::DeletionObserver implemetnation. 49 // CommandBufferProxyImpl::DeletionObserver implemetnation.
49 virtual void OnWillDeleteImpl() OVERRIDE; 50 virtual void OnWillDeleteImpl() OVERRIDE;
50 51
51 private: 52 private:
52 // Only Destroy() should be deleting |this|. 53 // Only Destroy() should be deleting |this|.
53 virtual ~GpuVideoDecodeAcceleratorHost(); 54 virtual ~GpuVideoDecodeAcceleratorHost();
54 55
55 // Notify |client_| of an error. Posts a task to avoid re-entrancy. 56 // Notify |client_| of an error. Posts a task to avoid re-entrancy.
56 void PostNotifyError(Error); 57 void PostNotifyError(Error);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
« no previous file with comments | « no previous file | content/common/gpu/client/gpu_video_decode_accelerator_host.cc » ('j') | media/video/video_decode_accelerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698