| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 } | 70 } |
| 71 | 71 |
| 72 void Window::onResize(uint32_t w, uint32_t h) { | 72 void Window::onResize(uint32_t w, uint32_t h) { |
| 73 fWidth = w; | 73 fWidth = w; |
| 74 fHeight = h; | 74 fHeight = h; |
| 75 fWindowContext->resize(w, h); | 75 fWindowContext->resize(w, h); |
| 76 } | 76 } |
| 77 | 77 |
| 78 const DisplayParams& Window::getDisplayParams() { |
| 79 return fWindowContext->getDisplayParams(); |
| 80 } |
| 81 |
| 82 void Window::setDisplayParams(const DisplayParams& params) { |
| 83 fWindowContext->setDisplayParams(params); |
| 84 } |
| 85 |
| 78 } // namespace sk_app | 86 } // namespace sk_app |
| OLD | NEW |