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

Unified Diff: tools/viewer/viewer/Viewer.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/viewer/viewer/Slide.h ('k') | tools/viewer/viewer/Viewer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/viewer/Viewer.h
diff --git a/tools/vulkan/viewer/VulkanViewer.h b/tools/viewer/viewer/Viewer.h
similarity index 79%
rename from tools/vulkan/viewer/VulkanViewer.h
rename to tools/viewer/viewer/Viewer.h
index 7e39f88a768aab5231ac47a6f16b90046f122d32..43d29baa96b340a5d546f57707bb2765fc597658 100644
--- a/tools/vulkan/viewer/VulkanViewer.h
+++ b/tools/viewer/viewer/Viewer.h
@@ -5,8 +5,8 @@
* found in the LICENSE file.
*/
-#ifndef VulkanViewer_DEFINED
-#define VulkanViewer_DEFINED
+#ifndef Viewer_DEFINED
+#define Viewer_DEFINED
#include "../Application.h"
#include "../Window.h"
@@ -16,12 +16,12 @@
class SkCanvas;
-class VulkanViewer : public Application {
+class Viewer : public sk_app::Application {
public:
- VulkanViewer(int argc, char** argv, void* platformData);
- ~VulkanViewer() override;
+ Viewer(int argc, char** argv, void* platformData);
+ ~Viewer() override;
- bool onKey(Window::Key key, Window::InputState state, uint32_t modifiers);
+ bool onKey(sk_app::Window::Key key, sk_app::Window::InputState state, uint32_t modifiers);
bool onChar(SkUnichar, uint32_t modifiers);
void onPaint(SkCanvas* canvas);
void onIdle(double ms) override;
@@ -35,7 +35,7 @@ private:
void changeZoomLevel(float delta);
void updateMatrix();
- Window* fWindow;
+ sk_app::Window* fWindow;
static const int kMeasurementCount = 64; // should be power of 2 for fast mod
double fMeasurements[kMeasurementCount];
« no previous file with comments | « tools/viewer/viewer/Slide.h ('k') | tools/viewer/viewer/Viewer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698