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

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

Issue 1831133004: Revert of Consolidate GPU buffer implementations (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkIndexBuffer.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 * 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 GrVkIndexBuffer_DEFINED 8 #ifndef GrVkIndexBuffer_DEFINED
9 #define GrVkIndexBuffer_DEFINED 9 #define GrVkIndexBuffer_DEFINED
10 10
11 #include "GrBuffer.h" 11 #include "GrIndexBuffer.h"
12 #include "GrVkBuffer.h" 12 #include "GrVkBuffer.h"
13 #include "vk/GrVkInterface.h" 13 #include "vk/GrVkInterface.h"
14 14
15 class GrVkGpu; 15 class GrVkGpu;
16 16
17 class GrVkIndexBuffer : public GrBuffer, public GrVkBuffer { 17 class GrVkIndexBuffer : public GrIndexBuffer, public GrVkBuffer {
18 18
19 public: 19 public:
20 static GrVkIndexBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic); 20 static GrVkIndexBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic);
21 21
22 protected: 22 protected:
23 void onAbandon() override; 23 void onAbandon() override;
24 void onRelease() override; 24 void onRelease() override;
25 25
26 private: 26 private:
27 GrVkIndexBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc, 27 GrVkIndexBuffer(GrVkGpu* gpu, const GrVkBuffer::Desc& desc,
28 const GrVkBuffer::Resource* resource); 28 const GrVkBuffer::Resource* resource);
29 29
30 void onMap() override; 30 void* onMap() override;
31 void onUnmap() override; 31 void onUnmap() override;
32 bool onUpdateData(const void* src, size_t srcSizeInBytes) override; 32 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
33 33
34 GrVkGpu* getVkGpu() const; 34 GrVkGpu* getVkGpu() const;
35 35
36 typedef GrBuffer INHERITED; 36 typedef GrIndexBuffer INHERITED;
37 }; 37 };
38 38
39 #endif 39 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkIndexBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698