| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 4 * | 3 * |
| 5 * 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 |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 #include "GrFrameBufferObj.h" | 8 #include "GrFrameBufferObj.h" |
| 10 #include "GrFBBindableObj.h" | 9 #include "GrFBBindableObj.h" |
| 11 | 10 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 57 } |
| 59 fStencilBuffer = buffer; | 58 fStencilBuffer = buffer; |
| 60 if (fStencilBuffer) { | 59 if (fStencilBuffer) { |
| 61 GrAlwaysAssert(!fStencilBuffer->getDeleted()); | 60 GrAlwaysAssert(!fStencilBuffer->getDeleted()); |
| 62 fStencilBuffer->ref(); | 61 fStencilBuffer->ref(); |
| 63 | 62 |
| 64 GrAlwaysAssert(!fStencilBuffer->getStencilBound(this)); | 63 GrAlwaysAssert(!fStencilBuffer->getStencilBound(this)); |
| 65 fStencilBuffer->setStencilBound(this); | 64 fStencilBuffer->setStencilBound(this); |
| 66 } | 65 } |
| 67 } | 66 } |
| OLD | NEW |