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

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

Issue 1485043002: Passed is_encrypted parameter to the VDA initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years 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 CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <d3d11.h> 8 #include <d3d11.h>
9 #include <d3d9.h> 9 #include <d3d9.h>
10 // Work around bug in this header by disabling the relevant warning for it. 10 // Work around bug in this header by disabling the relevant warning for it.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 kFlushing, // upon flush request received. 57 kFlushing, // upon flush request received.
58 }; 58 };
59 59
60 // Does not take ownership of |client| which must outlive |*this|. 60 // Does not take ownership of |client| which must outlive |*this|.
61 explicit DXVAVideoDecodeAccelerator( 61 explicit DXVAVideoDecodeAccelerator(
62 const base::Callback<bool(void)>& make_context_current, 62 const base::Callback<bool(void)>& make_context_current,
63 gfx::GLContext* gl_context); 63 gfx::GLContext* gl_context);
64 ~DXVAVideoDecodeAccelerator() override; 64 ~DXVAVideoDecodeAccelerator() override;
65 65
66 // media::VideoDecodeAccelerator implementation. 66 // media::VideoDecodeAccelerator implementation.
67 bool Initialize(media::VideoCodecProfile profile, 67 bool Initialize(const Config& config, Client* client) override;
68 Client* client) override;
69 void Decode(const media::BitstreamBuffer& bitstream_buffer) override; 68 void Decode(const media::BitstreamBuffer& bitstream_buffer) override;
70 void AssignPictureBuffers( 69 void AssignPictureBuffers(
71 const std::vector<media::PictureBuffer>& buffers) override; 70 const std::vector<media::PictureBuffer>& buffers) override;
72 void ReusePictureBuffer(int32 picture_buffer_id) override; 71 void ReusePictureBuffer(int32 picture_buffer_id) override;
73 void Flush() override; 72 void Flush() override;
74 void Reset() override; 73 void Reset() override;
75 void Destroy() override; 74 void Destroy() override;
76 bool CanDecodeOnIOThread() override; 75 bool CanDecodeOnIOThread() override;
77 GLenum GetSurfaceInternalFormat() const override; 76 GLenum GetSurfaceInternalFormat() const override;
78 77
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 375
377 // Function pointer for the MFCreateDXGIDeviceManager API. 376 // Function pointer for the MFCreateDXGIDeviceManager API.
378 static CreateDXGIDeviceManager create_dxgi_device_manager_; 377 static CreateDXGIDeviceManager create_dxgi_device_manager_;
379 378
380 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); 379 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator);
381 }; 380 };
382 381
383 } // namespace content 382 } // namespace content
384 383
385 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_ 384 #endif // CONTENT_COMMON_GPU_MEDIA_DXVA_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698