OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "SkMutex.h" | 9 #include "SkMutex.h" |
10 #include "SkOnce.h" | 10 #include "SkOnce.h" |
11 #include "gl/GrGLInterface.h" | 11 #include "gl/GrGLInterface.h" |
12 #include "gl/GrGLAssembleInterface.h" | 12 #include "gl/GrGLAssembleInterface.h" |
13 #include "gl/command_buffer/GLTestContext_command_buffer.h" | 13 #include "gl/command_buffer/GLTestContext_command_buffer.h" |
14 #include "../ports/SkOSEnvironment.h" | |
15 #include "../ports/SkOSLibrary.h" | 14 #include "../ports/SkOSLibrary.h" |
16 | 15 |
17 typedef void *EGLDisplay; | 16 typedef void *EGLDisplay; |
18 typedef unsigned int EGLBoolean; | 17 typedef unsigned int EGLBoolean; |
19 typedef void *EGLConfig; | 18 typedef void *EGLConfig; |
20 typedef void *EGLSurface; | 19 typedef void *EGLSurface; |
21 typedef void *EGLContext; | 20 typedef void *EGLContext; |
22 typedef int32_t EGLint; | 21 typedef int32_t EGLint; |
23 typedef void* EGLNativeDisplayType; | 22 typedef void* EGLNativeDisplayType; |
24 typedef void* EGLNativeWindowType; | 23 typedef void* EGLNativeWindowType; |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 return result; | 327 return result; |
329 } | 328 } |
330 | 329 |
331 int CommandBufferGLTestContext::getSampleCount() { | 330 int CommandBufferGLTestContext::getSampleCount() { |
332 EGLint result = 0; | 331 EGLint result = 0; |
333 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_SAMPLES, &r
esult); | 332 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_SAMPLES, &r
esult); |
334 return result; | 333 return result; |
335 } | 334 } |
336 | 335 |
337 } // namespace sk_gpu_test | 336 } // namespace sk_gpu_test |
OLD | NEW |