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

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

Issue 1116713002: Pull out shader-specific caps into GrShaderCaps and GrGLSLCaps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Clean up some comments Created 5 years, 7 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/gl/GrGLCaps.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 28 matching lines...) Expand all
39 const GrGLContext& glContext() const { return fGLContext; } 39 const GrGLContext& glContext() const { return fGLContext; }
40 40
41 const GrGLInterface* glInterface() const { return fGLContext.interface(); } 41 const GrGLInterface* glInterface() const { return fGLContext.interface(); }
42 const GrGLContextInfo& ctxInfo() const { return fGLContext; } 42 const GrGLContextInfo& ctxInfo() const { return fGLContext; }
43 GrGLStandard glStandard() const { return fGLContext.standard(); } 43 GrGLStandard glStandard() const { return fGLContext.standard(); }
44 GrGLVersion glVersion() const { return fGLContext.version(); } 44 GrGLVersion glVersion() const { return fGLContext.version(); }
45 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration() ; } 45 GrGLSLGeneration glslGeneration() const { return fGLContext.glslGeneration() ; }
46 const GrGLCaps& glCaps() const { return *fGLContext.caps(); } 46 const GrGLCaps& glCaps() const { return *fGLContext.caps(); }
47 47
48 GrGLPathRendering* glPathRendering() { 48 GrGLPathRendering* glPathRendering() {
49 SkASSERT(glCaps().pathRenderingSupport()); 49 SkASSERT(glCaps().shaderCaps()->pathRenderingSupport());
50 return static_cast<GrGLPathRendering*>(pathRendering()); 50 return static_cast<GrGLPathRendering*>(pathRendering());
51 } 51 }
52 52
53 void discard(GrRenderTarget*) override; 53 void discard(GrRenderTarget*) override;
54 54
55 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL 55 // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL
56 // state. 56 // state.
57 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture); 57 void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* te xture);
58 58
59 // GrGpu overrides 59 // GrGpu overrides
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 465
466 // we record what stencil format worked last time to hopefully exit early 466 // we record what stencil format worked last time to hopefully exit early
467 // from our loop that tries stencil formats and calls check fb status. 467 // from our loop that tries stencil formats and calls check fb status.
468 int fLastSuccessfulStencilFmtIdx; 468 int fLastSuccessfulStencilFmtIdx;
469 469
470 typedef GrGpu INHERITED; 470 typedef GrGpu INHERITED;
471 friend class GrGLPathRendering; // For accessing setTextureUnit. 471 friend class GrGLPathRendering; // For accessing setTextureUnit.
472 }; 472 };
473 473
474 #endif 474 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLCaps.cpp ('k') | src/gpu/gl/GrGLGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698