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

Side by Side Diff: src/gpu/vk/GrVkTransferBuffer.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
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 GrVkTransferBuffer_DEFINED 8 #ifndef GrVkTransferBuffer_DEFINED
9 #define GrVkTransferBuffer_DEFINED 9 #define GrVkTransferBuffer_DEFINED
10 10
11 #include "GrTransferBuffer.h" 11 #include "GrTransferBuffer.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 GrVkTransferBuffer : public GrTransferBuffer, public GrVkBuffer { 16 class GrVkTransferBuffer : public GrTransferBuffer, public GrVkBuffer {
18 17
19 public: 18 public:
20 static GrVkTransferBuffer* Create(GrVkGpu* gpu, size_t size, GrVkBuffer::Typ e type); 19 static GrVkTransferBuffer* Create(GrVkGpu* gpu, size_t size, GrVkBuffer::Typ e type);
21 20
22 protected: 21 protected:
23 void onAbandon() override; 22 void onAbandon() override;
(...skipping 21 matching lines...) Expand all
45 44
46 GrVkGpu* getVkGpu() const { 45 GrVkGpu* getVkGpu() const {
47 SkASSERT(!this->wasDestroyed()); 46 SkASSERT(!this->wasDestroyed());
48 return reinterpret_cast<GrVkGpu*>(this->getGpu()); 47 return reinterpret_cast<GrVkGpu*>(this->getGpu());
49 } 48 }
50 49
51 typedef GrTransferBuffer INHERITED; 50 typedef GrTransferBuffer INHERITED;
52 }; 51 };
53 52
54 #endif 53 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698