| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrAtlas.h" | 9 #include "GrAtlas.h" |
| 10 #include "GrContext.h" | 10 #include "GrContext.h" |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 plot->fRects->reset(); | 253 plot->fRects->reset(); |
| 254 plot->fNext = fFreePlots; | 254 plot->fNext = fFreePlots; |
| 255 fFreePlots = plot; | 255 fFreePlots = plot; |
| 256 | 256 |
| 257 #ifdef SK_DEBUG | 257 #ifdef SK_DEBUG |
| 258 --gCounter; | 258 --gCounter; |
| 259 // GrPrintf("~GrPlot %p [%d %d] %d\n", this, plot->fOffset.fX, plot->fOffset.
fY, gCounter); | 259 // GrPrintf("~GrPlot %p [%d %d] %d\n", this, plot->fOffset.fX, plot->fOffset.
fY, gCounter); |
| 260 #endif | 260 #endif |
| 261 } | 261 } |
| 262 |
| 263 SkISize GrAtlas::getSize() const { |
| 264 return SkISize::Make(GR_ATLAS_TEXTURE_WIDTH, GR_ATLAS_TEXTURE_HEIGHT); |
| 265 } |
| OLD | NEW |