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 "GrTextureUnitObj.h" | 8 #include "GrTextureUnitObj.h" |
10 #include "GrTextureObj.h" | 9 #include "GrTextureObj.h" |
11 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
22 fTexture = texture; | 21 fTexture = texture; |
23 | 22 |
24 if (fTexture) { | 23 if (fTexture) { |
25 GrAlwaysAssert(!fTexture->getDeleted()); | 24 GrAlwaysAssert(!fTexture->getDeleted()); |
26 fTexture->ref(); | 25 fTexture->ref(); |
27 | 26 |
28 GrAlwaysAssert(!fTexture->getBound(this)); | 27 GrAlwaysAssert(!fTexture->getBound(this)); |
29 fTexture->setBound(this); | 28 fTexture->setBound(this); |
30 } | 29 } |
31 } | 30 } |
OLD | NEW |