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 #include "webrtc/test/win/d3d_renderer.h" | 10 #include "webrtc/test/win/d3d_renderer.h" |
11 | 11 |
12 #include "webrtc/base/checks.h" | |
13 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" | 12 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" |
| 13 #include "webrtc/rtc_base/checks.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 namespace test { | 16 namespace test { |
17 | 17 |
18 #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_TEX1) | 18 #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_TEX1) |
19 | 19 |
20 struct D3dCustomVertex { | 20 struct D3dCustomVertex { |
21 float x, y, z; | 21 float x, y, z; |
22 float u, v; | 22 float u, v; |
23 }; | 23 }; |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 d3d_device_->SetFVF(D3DFVF_CUSTOMVERTEX); | 211 d3d_device_->SetFVF(D3DFVF_CUSTOMVERTEX); |
212 d3d_device_->SetStreamSource(0, vertex_buffer_, 0, sizeof(D3dCustomVertex)); | 212 d3d_device_->SetStreamSource(0, vertex_buffer_, 0, sizeof(D3dCustomVertex)); |
213 d3d_device_->SetTexture(0, texture_); | 213 d3d_device_->SetTexture(0, texture_); |
214 d3d_device_->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2); | 214 d3d_device_->DrawPrimitive(D3DPT_TRIANGLESTRIP, 0, 2); |
215 d3d_device_->EndScene(); | 215 d3d_device_->EndScene(); |
216 | 216 |
217 d3d_device_->Present(NULL, NULL, NULL, NULL); | 217 d3d_device_->Present(NULL, NULL, NULL, NULL); |
218 } | 218 } |
219 } // namespace test | 219 } // namespace test |
220 } // namespace webrtc | 220 } // namespace webrtc |
OLD | NEW |