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

Unified Diff: tools/vulkan/android/Window_android.h

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/vulkan/android/VulkanTestContext_android.cpp ('k') | tools/vulkan/android/Window_android.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/vulkan/android/Window_android.h
diff --git a/tools/vulkan/android/Window_android.h b/tools/vulkan/android/Window_android.h
deleted file mode 100644
index fa675feb326f3e34b1cb8ed556c8c237983f5efa..0000000000000000000000000000000000000000
--- a/tools/vulkan/android/Window_android.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
-* Copyright 2016 Google Inc.
-*
-* Use of this source code is governed by a BSD-style license that can be
-* found in the LICENSE file.
-*/
-
-#ifndef Window_android_DEFINED
-#define Window_android_DEFINED
-
-#include "../Window.h"
-#include <android_native_app_glue.h>
-
-enum {
- /**
- * Leave plenty of space between this item and the ones defined in the glue layer
- */
- APP_CMD_INVAL_WINDOW = 64,
-};
-
-class Window_android : public Window {
-public:
- Window_android() : Window() {}
- ~Window_android() override {}
-
- bool init(android_app* app_state);
- void initDisplay(ANativeWindow* window);
-
- void setTitle(const char*) override;
- void show() override {}
-
- bool attach(BackEndType attachType, int msaaSampleCount) override;
- void inval() override;
-
- void paintIfNeeded();
-
- bool scaleContentToFit() const override { return true; }
- bool supportsContentRect() const override { return true; }
- SkRect getContentRect() override { return mContentRect; }
- void setContentRect(int l, int t, int r, int b) { mContentRect.set(l,t,r,b); }
-
-private:
- android_app* mApp = nullptr;
- SkRect mContentRect;
- int mSampleCount = 0;
-};
-
-#endif
« no previous file with comments | « tools/vulkan/android/VulkanTestContext_android.cpp ('k') | tools/vulkan/android/Window_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698