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

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

Issue 1718693002: Add vulkan files into skia repo. (Closed) Base URL: https://skia.googlesource.com/skia.git@merge
Patch Set: fix path Created 4 years, 10 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/GrVkStencilAttachment.cpp ('k') | src/gpu/vk/GrVkTexture.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef GrVkTexture_DEFINED
9 #define GrVkTexture_DEFINED
10
11 #include "GrGpu.h"
12 #include "GrTexture.h"
13 #include "GrVkImage.h"
14
15 class GrVkGpu;
16 class GrVkImageView;
17
18 class GrVkTexture : public GrTexture, public virtual GrVkImage {
19 public:
20 static GrVkTexture* CreateNewTexture(GrVkGpu*, const GrSurfaceDesc&,
21 GrGpuResource::LifeCycle,
22 const GrVkImage::ImageDesc&);
23
24
25 static GrVkTexture* CreateWrappedTexture(GrVkGpu*, const GrSurfaceDesc&,
26 GrGpuResource::LifeCycle,
27 VkFormat, const GrVkImage::Resource *);
28
29 ~GrVkTexture() override;
30
31 GrBackendObject getTextureHandle() const override;
32
33 void textureParamsModified() override {}
34
35 const GrVkImageView* textureView() const { return fTextureView; }
36
37 protected:
38 enum Derived { kDerived };
39
40 GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, GrGpuResource::LifeCycle,
41 const GrVkImage::Resource*, const GrVkImageView* imageView);
42
43 GrVkTexture(GrVkGpu*, const GrSurfaceDesc&, GrGpuResource::LifeCycle,
44 const GrVkImage::Resource*, const GrVkImageView* imageView, Deri ved);
45
46 static GrVkTexture* Create(GrVkGpu*, const GrSurfaceDesc&,
47 GrGpuResource::LifeCycle, VkFormat,
48 const GrVkImage::Resource* texImpl);
49
50 GrVkGpu* getVkGpu() const;
51
52 void onAbandon() override;
53 void onRelease() override;
54
55 private:
56 const GrVkImageView* fTextureView;
57
58 typedef GrTexture INHERITED;
59 };
60
61 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkStencilAttachment.cpp ('k') | src/gpu/vk/GrVkTexture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698