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

Unified Diff: tools/viewer/android/Window_android.cpp

Issue 1945103003: Rename VulkanViewer to Viewer, take 2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix android path 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/viewer/android/Window_android.h ('k') | tools/viewer/android/main_android.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/android/Window_android.cpp
diff --git a/tools/vulkan/android/Window_android.cpp b/tools/viewer/android/Window_android.cpp
similarity index 97%
rename from tools/vulkan/android/Window_android.cpp
rename to tools/viewer/android/Window_android.cpp
index 87a4d22a3f6f2b3b97b6f91220ecbacba9a72f46..ebccb8beffc271a9a0fb4d8f5bd8995ba9c35534 100644
--- a/tools/vulkan/android/Window_android.cpp
+++ b/tools/viewer/android/Window_android.cpp
@@ -9,6 +9,8 @@
#include "VulkanTestContext_android.h"
+namespace sk_app {
+
Window* Window::CreateNativeWindow(void* platformData) {
Window_android* window = new Window_android();
if (!window->init((android_app*)platformData)) {
@@ -61,7 +63,7 @@ static void android_app_write_cmd(struct android_app* android_app, int8_t cmd) {
}
void Window_android::inval() {
- android_app_write_cmd(mApp, APP_CMD_INVAL_WINDOW);
+ android_app_write_cmd(mApp, APP_CMD_INVAL_WINDOW);
}
void Window_android::paintIfNeeded() {
@@ -149,7 +151,7 @@ static int32_t get_key_modifiers(AInputEvent* event) {
int32_t modifiers = 0;
if (AKeyEvent_getRepeatCount(event) == 0) {
- modifiers |= Window::kFirstPress_ModifierKey;
+ modifiers |= Window::kFirstPress_ModifierKey;
}
for (size_t i = 0; i < SK_ARRAY_COUNT(gPair); i++) {
@@ -177,3 +179,5 @@ static int32_t handle_input(struct android_app* app, AInputEvent* event) {
}
return 0;
}
+
+} // namespace sk_app
« no previous file with comments | « tools/viewer/android/Window_android.h ('k') | tools/viewer/android/main_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698