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

Side by Side Diff: src/gpu/vk/GrVkImage.h

Issue 1834903003: Add WSI functions to GrVkInterface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add Android and Xlib 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
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 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 GrVkImage_DEFINED 8 #ifndef GrVkImage_DEFINED
9 #define GrVkImage_DEFINED 9 #define GrVkImage_DEFINED
10 10
11 #include "GrVkResource.h" 11 #include "GrVkResource.h"
12 #include "SkTypes.h" 12 #include "SkTypes.h"
13 13
14 #include "vulkan/vulkan.h" 14 #include "vk/GrVkDefines.h"
15 15
16 class GrVkGpu; 16 class GrVkGpu;
17 17
18 class GrVkImage : SkNoncopyable { 18 class GrVkImage : SkNoncopyable {
19 public: 19 public:
20 // unlike GrVkBuffer, this needs to be public so GrVkStencilAttachment can u se it 20 // unlike GrVkBuffer, this needs to be public so GrVkStencilAttachment can u se it
21 class Resource : public GrVkResource { 21 class Resource : public GrVkResource {
22 public: 22 public:
23 enum Flags { 23 enum Flags {
24 kNo_Flags = 0, 24 kNo_Flags = 0,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void releaseImage(const GrVkGpu* gpu); 107 void releaseImage(const GrVkGpu* gpu);
108 void abandonImage(); 108 void abandonImage();
109 109
110 const Resource* fResource; 110 const Resource* fResource;
111 111
112 VkImageLayout fCurrentLayout; 112 VkImageLayout fCurrentLayout;
113 113
114 }; 114 };
115 115
116 #endif 116 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698