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

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

Issue 732693002: Drawstate on stack (Closed) Base URL: https://skia.googlesource.com/skia.git@real_def_gp
Patch Set: tiny fix 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/effects/GrDashingEffect.cpp ('k') | src/gpu/gl/GrGpuGL.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void notifyIndexBufferDelete(GrGLuint id) { 93 void notifyIndexBufferDelete(GrGLuint id) {
94 fHWGeometryState.notifyIndexBufferDelete(id); 94 fHWGeometryState.notifyIndexBufferDelete(id);
95 } 95 }
96 96
97 // DrawTarget overrides 97 // DrawTarget overrides
98 virtual bool copySurface(GrSurface* dst, 98 virtual bool copySurface(GrSurface* dst,
99 GrSurface* src, 99 GrSurface* src,
100 const SkIRect& srcRect, 100 const SkIRect& srcRect,
101 const SkIPoint& dstPoint) SK_OVERRIDE; 101 const SkIPoint& dstPoint) SK_OVERRIDE;
102 102
103 virtual bool canCopySurface(GrSurface* dst, 103 virtual bool canCopySurface(const GrSurface* dst,
104 GrSurface* src, 104 const GrSurface* src,
105 const SkIRect& srcRect, 105 const SkIRect& srcRect,
106 const SkIPoint& dstPoint) SK_OVERRIDE; 106 const SkIPoint& dstPoint) SK_OVERRIDE;
107 107
108 protected: 108 protected:
109 virtual void buildProgramDesc(const GrOptDrawState&, 109 virtual void buildProgramDesc(const GrOptDrawState&,
110 const GrProgramDesc::DescInfo&, 110 const GrProgramDesc::DescInfo&,
111 GrGpu::DrawType, 111 GrGpu::DrawType,
112 const GrDeviceCoordTexture* dstCopy, 112 const GrDeviceCoordTexture* dstCopy,
113 GrProgramDesc*) SK_OVERRIDE; 113 GrProgramDesc*) SK_OVERRIDE;
114 114
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 453
454 // we record what stencil format worked last time to hopefully exit early 454 // 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. 455 // from our loop that tries stencil formats and calls check fb status.
456 int fLastSuccessfulStencilFmtIdx; 456 int fLastSuccessfulStencilFmtIdx;
457 457
458 typedef GrGpu INHERITED; 458 typedef GrGpu INHERITED;
459 friend class GrGLPathRendering; // For accessing setTextureUnit. 459 friend class GrGLPathRendering; // For accessing setTextureUnit.
460 }; 460 };
461 461
462 #endif 462 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | src/gpu/gl/GrGpuGL.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698