| 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" | 
| 11 #include "SkCanvas.h" | 11 #include "SkCanvas.h" | 
| 12 #include "VulkanWindowContext.h" | 12 #include "WindowContext.h" | 
| 13 | 13 | 
| 14 namespace sk_app { | 14 namespace sk_app { | 
| 15 | 15 | 
| 16 static bool default_char_func(SkUnichar c, uint32_t modifiers, void* userData) { | 16 static bool default_char_func(SkUnichar c, uint32_t modifiers, void* userData) { | 
| 17     return false; | 17     return false; | 
| 18 } | 18 } | 
| 19 | 19 | 
| 20 static bool default_key_func(Window::Key key, Window::InputState state, uint32_t
      modifiers, | 20 static bool default_key_func(Window::Key key, Window::InputState state, uint32_t
      modifiers, | 
| 21                              void* userData) { | 21                              void* userData) { | 
| 22     return false; | 22     return false; | 
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 111 | 111 | 
| 112 void Window::markInvalProcessed() { | 112 void Window::markInvalProcessed() { | 
| 113     fIsContentInvalidated = false; | 113     fIsContentInvalidated = false; | 
| 114 } | 114 } | 
| 115 | 115 | 
| 116 sk_sp<SkSurface> Window::getOffscreenSurface(bool forceSRGB) { | 116 sk_sp<SkSurface> Window::getOffscreenSurface(bool forceSRGB) { | 
| 117     return fWindowContext->createOffscreenSurface(forceSRGB); | 117     return fWindowContext->createOffscreenSurface(forceSRGB); | 
| 118 } | 118 } | 
| 119 | 119 | 
| 120 }   // namespace sk_app | 120 }   // namespace sk_app | 
| OLD | NEW | 
|---|