| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 GrGLPathRendering_DEFINED | 8 #ifndef GrGLPathRendering_DEFINED |
| 9 #define GrGLPathRendering_DEFINED | 9 #define GrGLPathRendering_DEFINED |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // GrPathRendering implementations. | 35 // GrPathRendering implementations. |
| 36 GrPath* createPath(const SkPath&, const GrStrokeInfo&) override; | 36 GrPath* createPath(const SkPath&, const GrStrokeInfo&) override; |
| 37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, | 37 virtual GrPathRange* createPathRange(GrPathRange::PathGenerator*, |
| 38 const GrStrokeInfo&) override; | 38 const GrStrokeInfo&) override; |
| 39 | 39 |
| 40 /* Called when the 3D context state is unknown. */ | 40 /* Called when the 3D context state is unknown. */ |
| 41 void resetContext(); | 41 void resetContext(); |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * Called when the GPU resources have been lost and need to be abandoned | 44 * Called when the context either is about to be lost or is lost. Disconnect
Type indicates |
| 45 * (for example after a context loss). | 45 * whether GPU resources should be cleaned up or abandoned when this is call
ed. |
| 46 */ | 46 */ |
| 47 void abandonGpuResources(); | 47 void disconnect(GrGpu::DisconnectType); |
| 48 | 48 |
| 49 bool shouldBindFragmentInputs() const { | 49 bool shouldBindFragmentInputs() const { |
| 50 return fCaps.bindFragmentInputSupport; | 50 return fCaps.bindFragmentInputSupport; |
| 51 } | 51 } |
| 52 | 52 |
| 53 // Functions for "separable shader" texturing support. | 53 // Functions for "separable shader" texturing support. |
| 54 void setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location
, | 54 void setProgramPathFragmentInputTransform(GrGLuint program, GrGLint location
, |
| 55 GrGLenum genMode, GrGLint componen
ts, | 55 GrGLenum genMode, GrGLint componen
ts, |
| 56 const SkMatrix&); | 56 const SkMatrix&); |
| 57 | 57 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 GrGLGpu* gpu(); | 122 GrGLGpu* gpu(); |
| 123 | 123 |
| 124 GrGLuint fFirstPreallocatedPathID; | 124 GrGLuint fFirstPreallocatedPathID; |
| 125 GrGLsizei fPreallocatedPathCount; | 125 GrGLsizei fPreallocatedPathCount; |
| 126 MatrixState fHWProjectionMatrixState; | 126 MatrixState fHWProjectionMatrixState; |
| 127 GrStencilSettings fHWPathStencilSettings; | 127 GrStencilSettings fHWPathStencilSettings; |
| 128 Caps fCaps; | 128 Caps fCaps; |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif | 131 #endif |
| OLD | NEW |