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

Side by Side Diff: tools/viewer/sk_app/VulkanWindowContext.h

Issue 2058763002: Cleanup VulkanWindowContext for use on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Cleanup VulkanWindowContext for use on Android Created 4 years, 6 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/viewer/Viewer.h ('k') | tools/viewer/sk_app/android/VulkanWindowContext_android.cpp » ('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 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef VulkanWindowContext_DEFINED 8 #ifndef VulkanWindowContext_DEFINED
9 #define VulkanWindowContext_DEFINED 9 #define VulkanWindowContext_DEFINED
10 10
11 #include "SkTypes.h" // required to pull in any SkUserConfig defines
12
11 #ifdef SK_VULKAN 13 #ifdef SK_VULKAN
12 14
13 #include "vk/GrVkBackendContext.h" 15 #include "vk/GrVkBackendContext.h"
14 #include "WindowContext.h" 16 #include "WindowContext.h"
15 17
16 class GrRenderTarget; 18 class GrRenderTarget;
17 19
18 namespace sk_app { 20 namespace sk_app {
19 21
20 class VulkanWindowContext : public WindowContext { 22 class VulkanWindowContext : public WindowContext {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 VkCommandPool fCommandPool; 111 VkCommandPool fCommandPool;
110 BackbufferInfo* fBackbuffers; 112 BackbufferInfo* fBackbuffers;
111 uint32_t fCurrentBackbufferIndex; 113 uint32_t fCurrentBackbufferIndex;
112 }; 114 };
113 115
114 } // namespace sk_app 116 } // namespace sk_app
115 117
116 #endif // SK_VULKAN 118 #endif // SK_VULKAN
117 119
118 #endif 120 #endif
OLDNEW
« no previous file with comments | « tools/viewer/Viewer.h ('k') | tools/viewer/sk_app/android/VulkanWindowContext_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698