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

Side by Side Diff: src/gpu/vk/GrVkUniformBuffer.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 GrVkUniformBuffer_DEFINED 8 #ifndef GrVkUniformBuffer_DEFINED
9 #define GrVkUniformBuffer_DEFINED 9 #define GrVkUniformBuffer_DEFINED
10 10
11 #include "GrVkBuffer.h" 11 #include "GrVkBuffer.h"
12 #include "vk/GrVkInterface.h"
13 12
14 class GrVkGpu; 13 class GrVkGpu;
15 14
16 class GrVkUniformBuffer : public GrVkBuffer { 15 class GrVkUniformBuffer : public GrVkBuffer {
17 16
18 public: 17 public:
19 static GrVkUniformBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic); 18 static GrVkUniformBuffer* Create(GrVkGpu* gpu, size_t size, bool dynamic);
20 19
21 void* map(const GrVkGpu* gpu) { 20 void* map(const GrVkGpu* gpu) {
22 return this->vkMap(gpu); 21 return this->vkMap(gpu);
(...skipping 13 matching lines...) Expand all
36 35
37 private: 36 private:
38 GrVkUniformBuffer(const GrVkBuffer::Desc& desc, const GrVkBuffer::Resource* resource) 37 GrVkUniformBuffer(const GrVkBuffer::Desc& desc, const GrVkBuffer::Resource* resource)
39 : INHERITED(desc, resource) { 38 : INHERITED(desc, resource) {
40 }; 39 };
41 40
42 typedef GrVkBuffer INHERITED; 41 typedef GrVkBuffer INHERITED;
43 }; 42 };
44 43
45 #endif 44 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698