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

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

Issue 1810323002: Cache render targets that render to wrapped textures 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
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 GrGLTransferBuffer_DEFINED 8 #ifndef GrGLTransferBuffer_DEFINED
9 #define GrGLTransferBuffer_DEFINED 9 #define GrGLTransferBuffer_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 GrGLTransferBuffer(GrGLGpu* gpu, const Desc& desc, GrGLenum type); 22 GrGLTransferBuffer(GrGLGpu* gpu, const Desc& desc, GrGLenum type);
23 23
24 GrGLuint bufferID() const { return fImpl.bufferID(); } 24 GrGLuint bufferID() const { return fImpl.bufferID(); }
25 size_t baseOffset() const { return fImpl.baseOffset(); } 25 size_t baseOffset() const { return fImpl.baseOffset(); }
26 GrGLenum bufferType() const { return fImpl.bufferType(); } 26 GrGLenum bufferType() const { return fImpl.bufferType(); }
27 27
28 protected: 28 protected:
29 void onAbandon() override; 29 void onAbandon() override;
30 void onRelease() override; 30 void onRelease() override;
31 bool refsWrappedResources() const override { return false; }
31 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump, 32 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump,
32 const SkString& dumpName) const override; 33 const SkString& dumpName) const override;
33 34
34 private: 35 private:
35 void* onMap() override; 36 void* onMap() override;
36 void onUnmap() override; 37 void onUnmap() override;
37 38
38 GrGLGpu* getGpuGL() const { 39 GrGLGpu* getGpuGL() const {
39 SkASSERT(!this->wasDestroyed()); 40 SkASSERT(!this->wasDestroyed());
40 return (GrGLGpu*)(this->getGpu()); 41 return (GrGLGpu*)(this->getGpu());
41 } 42 }
42 43
43 GrGLBufferImpl fImpl; 44 GrGLBufferImpl fImpl;
44 45
45 typedef GrTransferBuffer INHERITED; 46 typedef GrTransferBuffer INHERITED;
46 }; 47 };
47 48
48 #endif 49 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698