OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 Google Inc. |
3 * | 3 * |
4 * 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 |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "Window.h" | 8 #include "Window.h" |
9 | 9 |
10 #include "SkSurface.h" | 10 #include "SkSurface.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 canvas->flush(); | 61 canvas->flush(); |
62 | 62 |
63 fTestContext->swapBuffers(); | 63 fTestContext->swapBuffers(); |
64 } else { | 64 } else { |
65 // try recreating testcontext | 65 // try recreating testcontext |
66 } | 66 } |
67 | 67 |
68 } | 68 } |
69 | 69 |
70 | |
71 void Window::onResize(uint32_t w, uint32_t h) { | 70 void Window::onResize(uint32_t w, uint32_t h) { |
| 71 fWidth = w; |
| 72 fHeight = h; |
72 fTestContext->resize(w, h); | 73 fTestContext->resize(w, h); |
73 } | 74 } |
OLD | NEW |