OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #include "SkOnce.h" | 7 #include "SkOnce.h" |
9 #include "gl/GrGLInterface.h" | 8 #include "gl/GrGLInterface.h" |
10 #include "gl/GrGLAssembleInterface.h" | 9 #include "gl/GrGLAssembleInterface.h" |
11 #include "gl/command_buffer/SkCommandBufferGLContext.h" | 10 #include "gl/command_buffer/SkCommandBufferGLContext.h" |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 EGLint result = 0; | 329 EGLint result = 0; |
331 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_STENCIL_SIZ
E, &result); | 330 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_STENCIL_SIZ
E, &result); |
332 return result; | 331 return result; |
333 } | 332 } |
334 | 333 |
335 int SkCommandBufferGLContext::getSampleCount() { | 334 int SkCommandBufferGLContext::getSampleCount() { |
336 EGLint result = 0; | 335 EGLint result = 0; |
337 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_SAMPLES, &r
esult); | 336 gfGetConfigAttrib(fDisplay, static_cast<EGLConfig>(fConfig), EGL_SAMPLES, &r
esult); |
338 return result; | 337 return result; |
339 } | 338 } |
OLD | NEW |