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

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

Issue 1304403003: Merge 1304263003 to m45 (Closed) Base URL: https://skia.googlesource.com/skia.git@m45
Patch Set: Created 5 years, 4 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/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.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 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 GrGLGpu_DEFINED 8 #ifndef GrGLGpu_DEFINED
9 #define GrGLGpu_DEFINED 9 #define GrGLGpu_DEFINED
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 void notifyVertexArrayDelete(GrGLuint id) { 89 void notifyVertexArrayDelete(GrGLuint id) {
90 fHWGeometryState.notifyVertexArrayDelete(id); 90 fHWGeometryState.notifyVertexArrayDelete(id);
91 } 91 }
92 void notifyVertexBufferDelete(GrGLuint id) { 92 void notifyVertexBufferDelete(GrGLuint id) {
93 fHWGeometryState.notifyVertexBufferDelete(id); 93 fHWGeometryState.notifyVertexBufferDelete(id);
94 } 94 }
95 void notifyIndexBufferDelete(GrGLuint id) { 95 void notifyIndexBufferDelete(GrGLuint id) {
96 fHWGeometryState.notifyIndexBufferDelete(id); 96 fHWGeometryState.notifyIndexBufferDelete(id);
97 } 97 }
98 98
99 bool copySurface(GrSurface* dst,
100 GrSurface* src,
101 const SkIRect& srcRect,
102 const SkIPoint& dstPoint) override;
103
104 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override; 99 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override;
105 100
106 void buildProgramDesc(GrProgramDesc*, 101 void buildProgramDesc(GrProgramDesc*,
107 const GrPrimitiveProcessor&, 102 const GrPrimitiveProcessor&,
108 const GrPipeline&, 103 const GrPipeline&,
109 const GrBatchTracker&) const override; 104 const GrBatchTracker&) const override;
110 105
111 const GrGLContext* glContextForTesting() const override { 106 const GrGLContext* glContextForTesting() const override {
112 return &this->glContext(); 107 return &this->glContext();
113 } 108 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 141
147 bool onWriteTexturePixels(GrTexture* texture, 142 bool onWriteTexturePixels(GrTexture* texture,
148 int left, int top, int width, int height, 143 int left, int top, int width, int height,
149 GrPixelConfig config, const void* buffer, 144 GrPixelConfig config, const void* buffer,
150 size_t rowBytes) override; 145 size_t rowBytes) override;
151 146
152 void onResolveRenderTarget(GrRenderTarget* target) override; 147 void onResolveRenderTarget(GrRenderTarget* target) override;
153 148
154 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override; 149 void onDraw(const DrawArgs&, const GrNonInstancedVertices&) override;
155 150
151 bool onCopySurface(GrSurface* dst,
152 GrSurface* src,
153 const SkIRect& srcRect,
154 const SkIPoint& dstPoint) override;
155
156 void clearStencil(GrRenderTarget*) override; 156 void clearStencil(GrRenderTarget*) override;
157 157
158 // GrDrawTarget overrides 158 // GrDrawTarget overrides
159 void didAddGpuTraceMarker() override; 159 void didAddGpuTraceMarker() override;
160 void didRemoveGpuTraceMarker() override; 160 void didRemoveGpuTraceMarker() override;
161 161
162 // binds texture unit in GL 162 // binds texture unit in GL
163 void setTextureUnit(int unitIdx); 163 void setTextureUnit(int unitIdx);
164 164
165 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set. 165 // Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 495
496 // we record what stencil format worked last time to hopefully exit early 496 // we record what stencil format worked last time to hopefully exit early
497 // from our loop that tries stencil formats and calls check fb status. 497 // from our loop that tries stencil formats and calls check fb status.
498 int fLastSuccessfulStencilFmtIdx; 498 int fLastSuccessfulStencilFmtIdx;
499 499
500 typedef GrGpu INHERITED; 500 typedef GrGpu INHERITED;
501 friend class GrGLPathRendering; // For accessing setTextureUnit. 501 friend class GrGLPathRendering; // For accessing setTextureUnit.
502 }; 502 };
503 503
504 #endif 504 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698