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

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

Issue 1920163004: Remove AttachmentInfo from VulkanViewer setup (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Restore check 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 unified diff | Download patch
« no previous file with comments | « src/gpu/vk/GrVkCaps.cpp ('k') | tools/vulkan/VulkanTestContext.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 VulkanTestContext_DEFINED 8 #ifndef VulkanTestContext_DEFINED
9 #define VulkanTestContext_DEFINED 9 #define VulkanTestContext_DEFINED
10 10
(...skipping 19 matching lines...) Expand all
30 delete ctx; 30 delete ctx;
31 return nullptr; 31 return nullptr;
32 } 32 }
33 return ctx; 33 return ctx;
34 } 34 }
35 35
36 SkSurface* getBackbufferSurface(); 36 SkSurface* getBackbufferSurface();
37 void swapBuffers(); 37 void swapBuffers();
38 38
39 bool makeCurrent() { return true; } 39 bool makeCurrent() { return true; }
40 int getStencilBits() { return 0; }
41 int getSampleCount() { return 0; }
42 40
43 bool isValid() { return SkToBool(fBackendContext.get()); } 41 bool isValid() { return SkToBool(fBackendContext.get()); }
44 42
45 void resize(uint32_t w, uint32_t h) { 43 void resize(uint32_t w, uint32_t h) {
46 this->createSwapchain(w, h); 44 this->createSwapchain(w, h);
47 } 45 }
48 46
49 GrBackendContext getBackendContext() { return (GrBackendContext)fBackendCont ext.get(); } 47 GrBackendContext getBackendContext() { return (GrBackendContext)fBackendCont ext.get(); }
50 48
51 private: 49 private:
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 VkImageLayout* fImageLayouts; // layouts of these images when not color attachment 105 VkImageLayout* fImageLayouts; // layouts of these images when not color attachment
108 sk_sp<SkSurface>* fSurfaces; // wrapped surface for those images 106 sk_sp<SkSurface>* fSurfaces; // wrapped surface for those images
109 VkCommandPool fCommandPool; 107 VkCommandPool fCommandPool;
110 BackbufferInfo* fBackbuffers; 108 BackbufferInfo* fBackbuffers;
111 uint32_t fCurrentBackbufferIndex; 109 uint32_t fCurrentBackbufferIndex;
112 }; 110 };
113 111
114 #endif // SK_VULKAN 112 #endif // SK_VULKAN
115 113
116 #endif 114 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkCaps.cpp ('k') | tools/vulkan/VulkanTestContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698