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

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

Issue 1229143007: Start to propagate constness of GrPipelineBuilder up the stack (Closed) Base URL: https://skia.googlesource.com/skia.git@const-fix
Patch Set: rebase Created 5 years, 5 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/effects/GrDashingEffect.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig, 63 GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
64 GrPixelConfig surfaceConfig) const override; 64 GrPixelConfig surfaceConfig) const override;
65 bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const override; 65 bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const override;
66 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget, 66 bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
67 int left, int top, 67 int left, int top,
68 int width, int height, 68 int width, int height,
69 GrPixelConfig config, 69 GrPixelConfig config,
70 size_t rowBytes) const override; 70 size_t rowBytes) const override;
71 bool fullReadPixelsIsFasterThanPartial() const override; 71 bool fullReadPixelsIsFasterThanPartial() const override;
72 72
73 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) overr ide; 73 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override;
74 74
75 // These functions should be used to bind GL objects. They track the GL stat e and skip redundant 75 // These functions should be used to bind GL objects. They track the GL stat e and skip redundant
76 // bindings. Making the equivalent glBind calls directly will confuse the st ate tracking. 76 // bindings. Making the equivalent glBind calls directly will confuse the st ate tracking.
77 void bindVertexArray(GrGLuint id) { 77 void bindVertexArray(GrGLuint id) {
78 fHWGeometryState.setVertexArrayID(this, id); 78 fHWGeometryState.setVertexArrayID(this, id);
79 } 79 }
80 void bindIndexBufferAndDefaultVertexArray(GrGLuint id) { 80 void bindIndexBufferAndDefaultVertexArray(GrGLuint id) {
81 fHWGeometryState.setIndexBufferIDOnDefaultVertexArray(this, id); 81 fHWGeometryState.setIndexBufferIDOnDefaultVertexArray(this, id);
82 } 82 }
83 void bindVertexBuffer(GrGLuint id) { 83 void bindVertexBuffer(GrGLuint id) {
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 500
501 // we record what stencil format worked last time to hopefully exit early 501 // we record what stencil format worked last time to hopefully exit early
502 // from our loop that tries stencil formats and calls check fb status. 502 // from our loop that tries stencil formats and calls check fb status.
503 int fLastSuccessfulStencilFmtIdx; 503 int fLastSuccessfulStencilFmtIdx;
504 504
505 typedef GrGpu INHERITED; 505 typedef GrGpu INHERITED;
506 friend class GrGLPathRendering; // For accessing setTextureUnit. 506 friend class GrGLPathRendering; // For accessing setTextureUnit.
507 }; 507 };
508 508
509 #endif 509 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDashingEffect.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698