| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  227         int                         fCount; |  227         int                         fCount; | 
|  228         unsigned int                fCurrLRUStamp; |  228         unsigned int                fCurrLRUStamp; | 
|  229         GrGLGpu*                    fGpu; |  229         GrGLGpu*                    fGpu; | 
|  230 #ifdef PROGRAM_CACHE_STATS |  230 #ifdef PROGRAM_CACHE_STATS | 
|  231         int                         fTotalRequests; |  231         int                         fTotalRequests; | 
|  232         int                         fCacheMisses; |  232         int                         fCacheMisses; | 
|  233         int                         fHashMisses; // cache hit but hash table mis
     sed |  233         int                         fHashMisses; // cache hit but hash table mis
     sed | 
|  234 #endif |  234 #endif | 
|  235     }; |  235     }; | 
|  236  |  236  | 
|  237     void flushDither(bool dither); |  | 
|  238     void flushColorWrite(bool writeColor); |  237     void flushColorWrite(bool writeColor); | 
|  239     void flushDrawFace(GrPipelineBuilder::DrawFace face); |  238     void flushDrawFace(GrPipelineBuilder::DrawFace face); | 
|  240  |  239  | 
|  241     // flushes the scissor. see the note on flushBoundTextureAndParams about |  240     // flushes the scissor. see the note on flushBoundTextureAndParams about | 
|  242     // flushing the scissor after that function is called. |  241     // flushing the scissor after that function is called. | 
|  243     void flushScissor(const GrScissorState&, |  242     void flushScissor(const GrScissorState&, | 
|  244                       const GrGLIRect& rtViewport, |  243                       const GrGLIRect& rtViewport, | 
|  245                       GrSurfaceOrigin rtOrigin); |  244                       GrSurfaceOrigin rtOrigin); | 
|  246  |  245  | 
|  247     // disables the scissor |  246     // disables the scissor | 
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  482     } fCopyProgram; |  481     } fCopyProgram; | 
|  483  |  482  | 
|  484     TriState fMSAAEnabled; |  483     TriState fMSAAEnabled; | 
|  485  |  484  | 
|  486     GrStencilSettings           fHWStencilSettings; |  485     GrStencilSettings           fHWStencilSettings; | 
|  487     TriState                    fHWStencilTestEnabled; |  486     TriState                    fHWStencilTestEnabled; | 
|  488  |  487  | 
|  489  |  488  | 
|  490     GrPipelineBuilder::DrawFace fHWDrawFace; |  489     GrPipelineBuilder::DrawFace fHWDrawFace; | 
|  491     TriState                    fHWWriteToColor; |  490     TriState                    fHWWriteToColor; | 
|  492     TriState                    fHWDitherEnabled; |  | 
|  493     uint32_t                    fHWBoundRenderTargetUniqueID; |  491     uint32_t                    fHWBoundRenderTargetUniqueID; | 
|  494     TriState                    fHWSRGBFramebuffer; |  492     TriState                    fHWSRGBFramebuffer; | 
|  495     SkTArray<uint32_t, true>    fHWBoundTextureUniqueIDs; |  493     SkTArray<uint32_t, true>    fHWBoundTextureUniqueIDs; | 
|  496  |  494  | 
|  497     ///@} |  495     ///@} | 
|  498  |  496  | 
|  499     // Mapping of pixel configs to known supported stencil formats to be used |  497     // Mapping of pixel configs to known supported stencil formats to be used | 
|  500     // when adding a stencil buffer to a framebuffer. |  498     // when adding a stencil buffer to a framebuffer. | 
|  501     int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; |  499     int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; | 
|  502  |  500  | 
|  503     typedef GrGpu INHERITED; |  501     typedef GrGpu INHERITED; | 
|  504     friend class GrGLPathRendering; // For accessing setTextureUnit. |  502     friend class GrGLPathRendering; // For accessing setTextureUnit. | 
|  505 }; |  503 }; | 
|  506  |  504  | 
|  507 #endif |  505 #endif | 
| OLD | NEW |