OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 #include "SkWGL.h" | 10 #include "SkWGL.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 | 106 |
107 return interface; | 107 return interface; |
108 } | 108 } |
109 | 109 |
110 void SkNativeGLContext::makeCurrent() const { | 110 void SkNativeGLContext::makeCurrent() const { |
111 if (!wglMakeCurrent(fDeviceContext, fGlRenderContext)) { | 111 if (!wglMakeCurrent(fDeviceContext, fGlRenderContext)) { |
112 SkDebugf("Could not create rendering context.\n"); | 112 SkDebugf("Could not create rendering context.\n"); |
113 } | 113 } |
114 } | 114 } |
| 115 |
| 116 void SkNativeGLContext::swapBuffers() const { |
| 117 if (!SwapBuffers(fDeviceContext)) { |
| 118 SkDebugf("Could not complete SwapBuffers.\n"); |
| 119 } |
| 120 } |
OLD | NEW |