OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // initialization and is owned by the IPC channel underlying the | 77 // initialization and is owned by the IPC channel underlying the |
78 // GpuCommandBufferStub. | 78 // GpuCommandBufferStub. |
79 IPC::Message* init_done_msg_; | 79 IPC::Message* init_done_msg_; |
80 | 80 |
81 // Route ID to communicate with the host. | 81 // Route ID to communicate with the host. |
82 int32 host_route_id_; | 82 int32 host_route_id_; |
83 | 83 |
84 // Unowned pointer to the underlying GpuCommandBufferStub. | 84 // Unowned pointer to the underlying GpuCommandBufferStub. |
85 base::WeakPtr<GpuCommandBufferStub> stub_; | 85 base::WeakPtr<GpuCommandBufferStub> stub_; |
86 | 86 |
87 // Pointer to the underlying VideoDecodeAccelerator. | 87 // The underlying VideoDecodeAccelerator. |
88 scoped_refptr<media::VideoDecodeAccelerator> video_decode_accelerator_; | 88 scoped_ptr<media::VideoDecodeAccelerator> video_decode_accelerator_; |
89 | 89 |
90 // Callback for making the relevant context current for GL calls. | 90 // Callback for making the relevant context current for GL calls. |
91 // Returns false if failed. | 91 // Returns false if failed. |
92 base::Callback<bool(void)> make_context_current_; | 92 base::Callback<bool(void)> make_context_current_; |
93 | 93 |
94 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 94 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
95 }; | 95 }; |
96 | 96 |
97 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 97 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |