| OLD | NEW | 
|    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  Loading... | 
|   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  Loading... | 
|  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 | 
| OLD | NEW |