| 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 GrOptDrawState_DEFINED | 8 #ifndef GrOptDrawState_DEFINED |
| 9 #define GrOptDrawState_DEFINED | 9 #define GrOptDrawState_DEFINED |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 /////////////////////////////////////////////////////////////////////////// | 163 /////////////////////////////////////////////////////////////////////////// |
| 164 /// @name Render Target | 164 /// @name Render Target |
| 165 //// | 165 //// |
| 166 | 166 |
| 167 /** | 167 /** |
| 168 * Retrieves the currently set render-target. | 168 * Retrieves the currently set render-target. |
| 169 * | 169 * |
| 170 * @return The currently set render target. | 170 * @return The currently set render target. |
| 171 */ | 171 */ |
| 172 GrRenderTarget* getRenderTarget() const { | 172 GrRenderTarget* getRenderTarget() const { return fRenderTarget.get(); } |
| 173 return static_cast<GrRenderTarget*>(fRenderTarget.getResource()); | |
| 174 } | |
| 175 | 173 |
| 176 /// @} | 174 /// @} |
| 177 | 175 |
| 178 /////////////////////////////////////////////////////////////////////////// | 176 /////////////////////////////////////////////////////////////////////////// |
| 179 /// @name Stencil | 177 /// @name Stencil |
| 180 //// | 178 //// |
| 181 | 179 |
| 182 const GrStencilSettings& getStencil() const { return fStencilSettings; } | 180 const GrStencilSettings& getStencil() const { return fStencilSettings; } |
| 183 | 181 |
| 184 /// @} | 182 /// @} |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 391 |
| 394 GrProgramDesc fDesc; | 392 GrProgramDesc fDesc; |
| 395 | 393 |
| 396 typedef SkRefCnt INHERITED; | 394 typedef SkRefCnt INHERITED; |
| 397 }; | 395 }; |
| 398 | 396 |
| 399 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); | 397 GR_MAKE_BITFIELD_OPS(GrOptDrawState::BlendOptFlags); |
| 400 | 398 |
| 401 #endif | 399 #endif |
| 402 | 400 |
| OLD | NEW |