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

Side by Side Diff: tools/vulkan/viewer/VulkanViewer.h

Issue 1848833005: First pass at VulkanViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments, plus add GM rendering Created 4 years, 8 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef VulkanViewer_DEFINED
9 #define VulkanViewer_DEFINED
10
11 #include "../Application.h"
12 #include "InputHandler.h"
13 #include "../Window.h"
14 #include "gm.h"
15
16 class SkCanvas;
17
18 class VulkanViewer : public Application {
19 public:
20 VulkanViewer(int argc, char** argv, void* platformData);
21 ~VulkanViewer() override;
22
23 bool onKey(int key, bool keyDown);
24 bool onMouse(int x, int y, bool mouseDown);
25 void onPaint(SkCanvas* canvas);
26
27 void onIdle(float dt) override;
28
29 private:
30 Window* fWindow;
31 InputHandler fInputHandler;
32
33 const skiagm::GMRegistry* fGMs;
34 };
35
36
37 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698