OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 "gl/SkNativeGLContext.h" | 9 #include "gl/SkNativeGLContext.h" |
10 #import <OpenGLES/EAGL.h> | 10 #import <OpenGLES/EAGL.h> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 return NULL; | 53 return NULL; |
54 } | 54 } |
55 return interface; | 55 return interface; |
56 } | 56 } |
57 | 57 |
58 void SkNativeGLContext::makeCurrent() const { | 58 void SkNativeGLContext::makeCurrent() const { |
59 if (![EAGLContext setCurrentContext:EAGLCTX]) { | 59 if (![EAGLContext setCurrentContext:EAGLCTX]) { |
60 SkDebugf("Could not set the context.\n"); | 60 SkDebugf("Could not set the context.\n"); |
61 } | 61 } |
62 } | 62 } |
| 63 |
| 64 void SkNativeGLContext::swapBuffers() const { } |
OLD | NEW |