| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |