OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 #ifndef WEBRTC_TEST_WIN_D3D_RENDERER_H_ | 10 #ifndef WEBRTC_TEST_WIN_D3D_RENDERER_H_ |
11 #define WEBRTC_TEST_WIN_D3D_RENDERER_H_ | 11 #define WEBRTC_TEST_WIN_D3D_RENDERER_H_ |
12 | 12 |
13 #include <Windows.h> | 13 #include <Windows.h> |
14 #include <d3d9.h> | 14 #include <d3d9.h> |
15 #pragma comment(lib, "d3d9.lib") // located in DirectX SDK | 15 #pragma comment(lib, "d3d9.lib") // located in DirectX SDK |
16 | 16 |
17 #include "webrtc/rtc_base/scoped_ref_ptr.h" | 17 #include "webrtc/base/scoped_ref_ptr.h" |
18 #include "webrtc/test/video_renderer.h" | 18 #include "webrtc/test/video_renderer.h" |
19 #include "webrtc/typedefs.h" | 19 #include "webrtc/typedefs.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 namespace test { | 22 namespace test { |
23 | 23 |
24 class D3dRenderer : public VideoRenderer { | 24 class D3dRenderer : public VideoRenderer { |
25 public: | 25 public: |
26 static D3dRenderer* Create(const char* window_title, size_t width, | 26 static D3dRenderer* Create(const char* window_title, size_t width, |
27 size_t height); | 27 size_t height); |
(...skipping 16 matching lines...) Expand all Loading... |
44 rtc::scoped_refptr<IDirect3D9> d3d_; | 44 rtc::scoped_refptr<IDirect3D9> d3d_; |
45 rtc::scoped_refptr<IDirect3DDevice9> d3d_device_; | 45 rtc::scoped_refptr<IDirect3DDevice9> d3d_device_; |
46 | 46 |
47 rtc::scoped_refptr<IDirect3DTexture9> texture_; | 47 rtc::scoped_refptr<IDirect3DTexture9> texture_; |
48 rtc::scoped_refptr<IDirect3DVertexBuffer9> vertex_buffer_; | 48 rtc::scoped_refptr<IDirect3DVertexBuffer9> vertex_buffer_; |
49 }; | 49 }; |
50 } // namespace test | 50 } // namespace test |
51 } // namespace webrtc | 51 } // namespace webrtc |
52 | 52 |
53 #endif // WEBRTC_TEST_WIN_D3D_RENDERER_H_ | 53 #endif // WEBRTC_TEST_WIN_D3D_RENDERER_H_ |
OLD | NEW |