Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Side by Side Diff: tools/vulkan/android/Window_android.cpp

Issue 1935523002: Fix Vulkan Build in Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Restore Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/vulkan/android/Window_android.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_android.h" 8 #include "Window_android.h"
9 9
10 #include "VulkanTestContext_android.h" 10 #include "VulkanTestContext_android.h"
(...skipping 17 matching lines...) Expand all
28 mApp->onAppCmd = handle_cmd; 28 mApp->onAppCmd = handle_cmd;
29 mApp->onInputEvent = handle_input; 29 mApp->onInputEvent = handle_input;
30 return true; 30 return true;
31 } 31 }
32 32
33 void Window_android::setTitle(const char* title) { 33 void Window_android::setTitle(const char* title) {
34 //todo 34 //todo
35 SkDebugf("Title: %s", title); 35 SkDebugf("Title: %s", title);
36 } 36 }
37 37
38 bool Window_android::attach(BackEndType attachType, int msaaSampleCount, Attachm entInfo*) { 38 bool Window_android::attach(BackEndType attachType, int msaaSampleCount) {
39 if (kVulkan_BackendType != attachType) { 39 if (kVulkan_BackendType != attachType) {
40 return false; 40 return false;
41 } 41 }
42 42
43 mSampleCount = msaaSampleCount; 43 mSampleCount = msaaSampleCount;
44 44
45 // We delay the creation of fTestContext until Android informs us that 45 // We delay the creation of fTestContext until Android informs us that
46 // the native window is ready to use. 46 // the native window is ready to use.
47 return true; 47 return true;
48 } 48 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 break; 170 break;
171 case AINPUT_EVENT_TYPE_KEY: 171 case AINPUT_EVENT_TYPE_KEY:
172 Window::Key key = get_key(AKeyEvent_getKeyCode(event)); 172 Window::Key key = get_key(AKeyEvent_getKeyCode(event));
173 Window::InputState state = get_action(AKeyEvent_getAction(event)); 173 Window::InputState state = get_action(AKeyEvent_getAction(event));
174 int32_t mod = get_key_modifiers(event); 174 int32_t mod = get_key_modifiers(event);
175 window->onKey(key, state, mod); 175 window->onKey(key, state, mod);
176 return true; // eat all key events 176 return true; // eat all key events
177 } 177 }
178 return 0; 178 return 0;
179 } 179 }
OLDNEW
« no previous file with comments | « tools/vulkan/android/Window_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698