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

Side by Side Diff: tools/vulkan/Window.h

Issue 1903253003: VulkanViewer on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp 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
« no previous file with comments | « tools/build_shaderc.py ('k') | tools/vulkan/android/VulkanTestContext_android.h » ('j') | 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 #ifndef Window_DEFINED 8 #ifndef Window_DEFINED
9 #define Window_DEFINED 9 #define Window_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 #include "SkRect.h"
12 13
13 class SkCanvas; 14 class SkCanvas;
14 class VulkanTestContext; 15 class VulkanTestContext;
15 16
16 class Window { 17 class Window {
17 public: 18 public:
18 static Window* CreateNativeWindow(void* platformData); 19 static Window* CreateNativeWindow(void* platformData);
19 20
20 virtual ~Window() {}; 21 virtual ~Window() {};
21 22
22 virtual void setTitle(const char*) = 0; 23 virtual void setTitle(const char*) = 0;
23 virtual void show() = 0; 24 virtual void show() = 0;
24 virtual void inval() = 0; 25 virtual void inval() = 0;
25 26
27 virtual bool scaleContentToFit() const { return false; }
28 virtual bool supportsContentRect() const { return false; }
29 virtual SkRect getContentRect() { return SkRect::MakeEmpty(); }
30
26 struct AttachmentInfo { 31 struct AttachmentInfo {
27 int fSampleCount; 32 int fSampleCount;
28 int fStencilBits; 33 int fStencilBits;
29 }; 34 };
30 35
31 enum BackEndType { 36 enum BackEndType {
32 kNativeGL_BackendType, 37 kNativeGL_BackendType,
33 kVulkan_BackendType 38 kVulkan_BackendType
34 }; 39 };
35 40
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 OnMouseFunc fMouseFunc; 144 OnMouseFunc fMouseFunc;
140 void* fMouseUserData; 145 void* fMouseUserData;
141 OnPaintFunc fPaintFunc; 146 OnPaintFunc fPaintFunc;
142 void* fPaintUserData; 147 void* fPaintUserData;
143 148
144 VulkanTestContext* fTestContext; 149 VulkanTestContext* fTestContext;
145 }; 150 };
146 151
147 152
148 #endif 153 #endif
OLDNEW
« no previous file with comments | « tools/build_shaderc.py ('k') | tools/vulkan/android/VulkanTestContext_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698