OLD | NEW |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
1 #import "SkSampleUIView.h" | 8 #import "SkSampleUIView.h" |
2 | 9 |
3 #define SKGL_CONFIG kEAGLColorFormatRGB565 | 10 //#define SKGL_CONFIG kEAGLColorFormatRGB565 |
4 //#define SKGL_CONFIG kEAGLColorFormatRGBA8 | 11 #define SKGL_CONFIG kEAGLColorFormatRGBA8 |
5 | 12 |
6 #define FORCE_REDRAW | 13 #define FORCE_REDRAW |
7 | 14 |
8 #include "SkCanvas.h" | 15 #include "SkCanvas.h" |
9 #include "SkCGUtils.h" | 16 #include "SkCGUtils.h" |
10 #include "SkSurface.h" | 17 #include "SkSurface.h" |
11 #include "SampleApp.h" | 18 #include "SampleApp.h" |
12 | 19 |
13 #if SK_SUPPORT_GPU | 20 #if SK_SUPPORT_GPU |
14 //#define USE_GL_1 | 21 //#define USE_GL_1 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer); | 471 glBindRenderbuffer(GL_RENDERBUFFER, fGL.fRenderbuffer); |
465 glGetRenderbufferParameteriv(GL_RENDERBUFFER, | 472 glGetRenderbufferParameteriv(GL_RENDERBUFFER, |
466 GL_RENDERBUFFER_STENCIL_SIZE, | 473 GL_RENDERBUFFER_STENCIL_SIZE, |
467 &info->fStencilBits); | 474 &info->fStencilBits); |
468 glGetRenderbufferParameteriv(GL_RENDERBUFFER, | 475 glGetRenderbufferParameteriv(GL_RENDERBUFFER, |
469 GL_RENDERBUFFER_SAMPLES_APPLE, | 476 GL_RENDERBUFFER_SAMPLES_APPLE, |
470 &info->fSampleCount); | 477 &info->fSampleCount); |
471 } | 478 } |
472 | 479 |
473 @end | 480 @end |
OLD | NEW |