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

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

Issue 742763002: scissor state on optstate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 1 month 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/GrGpuGL_program.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 GrGpuGL_DEFINED 8 #ifndef GrGpuGL_DEFINED
9 #define GrGpuGL_DEFINED 9 #define GrGpuGL_DEFINED
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 size_t rowBytes) SK_OVERRIDE; 152 size_t rowBytes) SK_OVERRIDE;
153 153
154 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE; 154 virtual void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE;
155 155
156 virtual void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK _OVERRIDE; 156 virtual void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK _OVERRIDE;
157 157
158 158
159 virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE; 159 virtual void clearStencil(GrRenderTarget*) SK_OVERRIDE;
160 virtual bool flushGraphicsState(const GrOptDrawState&, 160 virtual bool flushGraphicsState(const GrOptDrawState&,
161 DrawType, 161 DrawType,
162 const GrClipMaskManager::ScissorState&,
163 const GrDeviceCoordTexture* dstCopy) SK_OVER RIDE; 162 const GrDeviceCoordTexture* dstCopy) SK_OVER RIDE;
164 163
165 // GrDrawTarget overrides 164 // GrDrawTarget overrides
166 virtual void didAddGpuTraceMarker() SK_OVERRIDE; 165 virtual void didAddGpuTraceMarker() SK_OVERRIDE;
167 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE; 166 virtual void didRemoveGpuTraceMarker() SK_OVERRIDE;
168 167
169 // binds texture unit in GL 168 // binds texture unit in GL
170 void setTextureUnit(int unitIdx); 169 void setTextureUnit(int unitIdx);
171 170
172 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset 171 // Sets up vertex attribute pointers and strides. On return indexOffsetInByt es gives the offset
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 452
454 // we record what stencil format worked last time to hopefully exit early 453 // we record what stencil format worked last time to hopefully exit early
455 // from our loop that tries stencil formats and calls check fb status. 454 // from our loop that tries stencil formats and calls check fb status.
456 int fLastSuccessfulStencilFmtIdx; 455 int fLastSuccessfulStencilFmtIdx;
457 456
458 typedef GrGpu INHERITED; 457 typedef GrGpu INHERITED;
459 friend class GrGLPathRendering; // For accessing setTextureUnit. 458 friend class GrGLPathRendering; // For accessing setTextureUnit.
460 }; 459 };
461 460
462 #endif 461 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrTest.cpp ('k') | src/gpu/gl/GrGpuGL_program.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698