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

Side by Side Diff: src/gpu/vk/GrVkVertexBuffer.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, 9 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
« include/gpu/vk/GrVkInterface.h ('K') | « src/gpu/vk/GrVkUtil.h ('k') | no next file » | 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 * 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 GrVkVertexBuffer_DEFINED 8 #ifndef GrVkVertexBuffer_DEFINED
9 #define GrVkVertexBuffer_DEFINED 9 #define GrVkVertexBuffer_DEFINED
10 10
11 #include "GrVertexBuffer.h" 11 #include "GrVertexBuffer.h"
12 #include "GrVkBuffer.h" 12 #include "GrVkBuffer.h"
13 #include "vk/GrVkInterface.h"
14 13
15 class GrVkGpu; 14 class GrVkGpu;
16 15
17 class GrVkVertexBuffer : public GrVertexBuffer, public GrVkBuffer { 16 class GrVkVertexBuffer : public GrVertexBuffer, public GrVkBuffer {
18 public: 17 public:
19 static GrVkVertexBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic); 18 static GrVkVertexBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic);
20 19
21 protected: 20 protected:
22 void onAbandon() override; 21 void onAbandon() override;
23 void onRelease() override; 22 void onRelease() override;
24 23
25 private: 24 private:
26 GrVkVertexBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc, 25 GrVkVertexBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc,
27 const GrVkBuffer::Resource* resource); 26 const GrVkBuffer::Resource* resource);
28 27
29 void* onMap() override; 28 void* onMap() override;
30 void onUnmap() override; 29 void onUnmap() override;
31 bool onUpdateData(const void* src, size_t srcSizeInBytes) override; 30 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
32 31
33 GrVkGpu* getVkGpu() const; 32 GrVkGpu* getVkGpu() const;
34 33
35 typedef GrVertexBuffer INHERITED; 34 typedef GrVertexBuffer INHERITED;
36 }; 35 };
37 36
38 #endif 37 #endif
OLDNEW
« include/gpu/vk/GrVkInterface.h ('K') | « src/gpu/vk/GrVkUtil.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698