| 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 GrRODrawState_DEFINED | 8 #ifndef GrRODrawState_DEFINED |
| 9 #define GrRODrawState_DEFINED | 9 #define GrRODrawState_DEFINED |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 | 231 |
| 232 /////////////////////////////////////////////////////////////////////////// | 232 /////////////////////////////////////////////////////////////////////////// |
| 233 /// @name Render Target | 233 /// @name Render Target |
| 234 //// | 234 //// |
| 235 | 235 |
| 236 /** | 236 /** |
| 237 * Retrieves the currently set render-target. | 237 * Retrieves the currently set render-target. |
| 238 * | 238 * |
| 239 * @return The currently set render target. | 239 * @return The currently set render target. |
| 240 */ | 240 */ |
| 241 const GrRenderTarget* getRenderTarget() const { return fRenderTarget.get();
} | 241 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); } |
| 242 GrRenderTarget* getRenderTarget() { return fRenderTarget.get(); } | |
| 243 | 242 |
| 244 /// @} | 243 /// @} |
| 245 | 244 |
| 246 /////////////////////////////////////////////////////////////////////////// | 245 /////////////////////////////////////////////////////////////////////////// |
| 247 /// @name Stencil | 246 /// @name Stencil |
| 248 //// | 247 //// |
| 249 | 248 |
| 250 const GrStencilSettings& getStencil() const { return fStencilSettings; } | 249 const GrStencilSettings& getStencil() const { return fStencilSettings; } |
| 251 | 250 |
| 252 /// @} | 251 /// @} |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // not need to be compared in op==. | 369 // not need to be compared in op==. |
| 371 int fFixedFunctionVertexAttribIndices[kGrFixedFunctionVertexAttribBindingCnt
]; | 370 int fFixedFunctionVertexAttribIndices[kGrFixedFunctionVertexAttribBindingCnt
]; |
| 372 | 371 |
| 373 private: | 372 private: |
| 374 typedef SkRefCnt INHERITED; | 373 typedef SkRefCnt INHERITED; |
| 375 }; | 374 }; |
| 376 | 375 |
| 377 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); | 376 GR_MAKE_BITFIELD_OPS(GrRODrawState::BlendOptFlags); |
| 378 | 377 |
| 379 #endif | 378 #endif |
| OLD | NEW |