| 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 "GrContext.h" | 9 #include "GrContext.h" |
| 10 #include "SkSurface.h" | 10 #include "SkSurface.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 } | 86 } |
| 87 | 87 |
| 88 return fSurface; | 88 return fSurface; |
| 89 } | 89 } |
| 90 | 90 |
| 91 void GLWindowContext::swapBuffers() { | 91 void GLWindowContext::swapBuffers() { |
| 92 this->presentRenderSurface(fSurface, fRenderTarget, fActualColorBits); | 92 this->presentRenderSurface(fSurface, fRenderTarget, fActualColorBits); |
| 93 this->onSwapBuffers(); | 93 this->onSwapBuffers(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 void GLWindowContext::resize(uint32_t w, uint32_t h) { | 96 void GLWindowContext::resize(int w, int h) { |
| 97 this->destroyContext(); | 97 this->destroyContext(); |
| 98 this->initializeContext(); | 98 this->initializeContext(); |
| 99 } | 99 } |
| 100 | 100 |
| 101 void GLWindowContext::setDisplayParams(const DisplayParams& params) { | 101 void GLWindowContext::setDisplayParams(const DisplayParams& params) { |
| 102 this->destroyContext(); | 102 this->destroyContext(); |
| 103 fDisplayParams = params; | 103 fDisplayParams = params; |
| 104 this->initializeContext(); | 104 this->initializeContext(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } //namespace sk_app | 107 } //namespace sk_app |
| OLD | NEW |