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

Side by Side Diff: src/gpu/gl/GrGLVertexBuffer.h

Issue 1225923010: Refugee from Dead Machine 4: MDB Monster Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Last update from dead machine Created 4 years, 7 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/gl/GrGLTextureRenderTarget.h ('k') | src/image/SkImageShader.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 GrGLVertexBuffer_DEFINED 8 #ifndef GrGLVertexBuffer_DEFINED
9 #define GrGLVertexBuffer_DEFINED 9 #define GrGLVertexBuffer_DEFINED
10 10
11 #include "GrVertexBuffer.h" 11 #include "GrVertexBuffer.h"
12 #include "GrGLBufferImpl.h" 12 #include "GrGLBufferImpl.h"
13 #include "gl/GrGLInterface.h" 13 #include "gl/GrGLInterface.h"
14 14
15 class GrGLGpu; 15 class GrGLGpu;
16 16
17 class GrGLVertexBuffer : public GrVertexBuffer { 17 class GrGLVertexBuffer : public GrVertexBuffer {
18 18
19 public: 19 public:
20 GrRenderTarget* arrgh() override { return NULL; }
21
20 typedef GrGLBufferImpl::Desc Desc; 22 typedef GrGLBufferImpl::Desc Desc;
21 23
22 GrGLVertexBuffer(GrGLGpu* gpu, const Desc& desc); 24 GrGLVertexBuffer(GrGLGpu* gpu, const Desc& desc);
23 25
24 GrGLuint bufferID() const { return fImpl.bufferID(); } 26 GrGLuint bufferID() const { return fImpl.bufferID(); }
25 size_t baseOffset() const { return fImpl.baseOffset(); } 27 size_t baseOffset() const { return fImpl.baseOffset(); }
26 28
27 protected: 29 protected:
28 void onAbandon() override; 30 void onAbandon() override;
29 void onRelease() override; 31 void onRelease() override;
30 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump, 32 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump,
31 const SkString& dumpName) const override; 33 const SkString& dumpName) const override;
32 34
33 private: 35 private:
34 void* onMap() override; 36 void* onMap() override;
35 void onUnmap() override; 37 void onUnmap() override;
36 bool onUpdateData(const void* src, size_t srcSizeInBytes) override; 38 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
37 39
38 GrGLGpu* getGpuGL() const { 40 GrGLGpu* getGpuGL() const {
39 SkASSERT(!this->wasDestroyed()); 41 SkASSERT(!this->wasDestroyed());
40 return (GrGLGpu*)(this->getGpu()); 42 return (GrGLGpu*)(this->getGpu());
41 } 43 }
42 44
43 GrGLBufferImpl fImpl; 45 GrGLBufferImpl fImpl;
44 46
45 typedef GrVertexBuffer INHERITED; 47 typedef GrVertexBuffer INHERITED;
46 }; 48 };
47 49
48 #endif 50 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTextureRenderTarget.h ('k') | src/image/SkImageShader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698