| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  262  |  262  | 
|  263     void initFSAASupport(); |  263     void initFSAASupport(); | 
|  264  |  264  | 
|  265     // determines valid stencil formats |  265     // determines valid stencil formats | 
|  266     void initStencilFormats(); |  266     void initStencilFormats(); | 
|  267  |  267  | 
|  268     // sets a texture unit to use for texture operations other than binding a te
     xture to a program. |  268     // sets a texture unit to use for texture operations other than binding a te
     xture to a program. | 
|  269     // ensures that such operations don't negatively interact with tracking boun
     d textures. |  269     // ensures that such operations don't negatively interact with tracking boun
     d textures. | 
|  270     void setScratchTextureUnit(); |  270     void setScratchTextureUnit(); | 
|  271  |  271  | 
 |  272     // colocates all samples at pixel center for render target, if MSAA. | 
 |  273     // allows drawing coverage based AA shapes in MSAA mode. | 
 |  274     void setColocatedSampleLocations(GrRenderTarget* rt, bool useColocatedSample
     Locations); | 
 |  275  | 
|  272     // bounds is region that may be modified and therefore has to be resolved. |  276     // bounds is region that may be modified and therefore has to be resolved. | 
|  273     // nullptr means whole target. Can be an empty rect. |  277     // nullptr means whole target. Can be an empty rect. | 
|  274     void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds, bool coCent
     erSamples = false); |  278     void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds); | 
|  275  |  279  | 
|  276     void flushStencil(const GrStencilSettings&); |  280     void flushStencil(const GrStencilSettings&); | 
|  277     void flushHWAAState(GrRenderTarget* rt, bool useHWAA); |  281     void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool stencilEnabled); | 
|  278  |  282  | 
|  279     bool configToGLFormats(GrPixelConfig config, |  283     bool configToGLFormats(GrPixelConfig config, | 
|  280                            bool getSizedInternal, |  284                            bool getSizedInternal, | 
|  281                            GrGLenum* internalFormat, |  285                            GrGLenum* internalFormat, | 
|  282                            GrGLenum* externalFormat, |  286                            GrGLenum* externalFormat, | 
|  283                            GrGLenum* externalType) const; |  287                            GrGLenum* externalType) const; | 
|  284     // helper for onCreateTexture and writeTexturePixels |  288     // helper for onCreateTexture and writeTexturePixels | 
|  285     bool uploadTexData(const GrSurfaceDesc& desc, |  289     bool uploadTexData(const GrSurfaceDesc& desc, | 
|  286                        GrGLenum target, |  290                        GrGLenum target, | 
|  287                        bool isNewTexture, |  291                        bool isNewTexture, | 
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  517  |  521  | 
|  518     // Mapping of pixel configs to known supported stencil formats to be used |  522     // Mapping of pixel configs to known supported stencil formats to be used | 
|  519     // when adding a stencil buffer to a framebuffer. |  523     // when adding a stencil buffer to a framebuffer. | 
|  520     int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; |  524     int fPixelConfigToStencilIndex[kGrPixelConfigCnt]; | 
|  521  |  525  | 
|  522     typedef GrGpu INHERITED; |  526     typedef GrGpu INHERITED; | 
|  523     friend class GrGLPathRendering; // For accessing setTextureUnit. |  527     friend class GrGLPathRendering; // For accessing setTextureUnit. | 
|  524 }; |  528 }; | 
|  525  |  529  | 
|  526 #endif |  530 #endif | 
| OLD | NEW |