| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 GrContext_DEFINED | 8 #ifndef GrContext_DEFINED |
| 9 #define GrContext_DEFINED | 9 #define GrContext_DEFINED |
| 10 | 10 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 * rendering quality for the display. Alternatively returns 0 if | 167 * rendering quality for the display. Alternatively returns 0 if |
| 168 * MSAA is not supported or recommended to be used by default. | 168 * MSAA is not supported or recommended to be used by default. |
| 169 */ | 169 */ |
| 170 int getRecommendedSampleCount(GrPixelConfig config, SkScalar dpi) const; | 170 int getRecommendedSampleCount(GrPixelConfig config, SkScalar dpi) const; |
| 171 | 171 |
| 172 /** | 172 /** |
| 173 * Returns a helper object to orchestrate draws. | 173 * Returns a helper object to orchestrate draws. |
| 174 * Callers should take a ref if they rely on the GrDrawContext sticking arou
nd. | 174 * Callers should take a ref if they rely on the GrDrawContext sticking arou
nd. |
| 175 * NULL will be returned if the context has been abandoned. | 175 * NULL will be returned if the context has been abandoned. |
| 176 * | 176 * |
| 177 * @param devProps the device properties (mainly defines text drawing) | 177 * @param surfaceProps the surface properties (mainly defines text drawing) |
| 178 * | 178 * |
| 179 * @return a draw context | 179 * @return a draw context |
| 180 */ | 180 */ |
| 181 GrDrawContext* drawContext(const SkSurfaceProps* surfaceProps = NULL) { | 181 GrDrawContext* drawContext(const SkSurfaceProps* surfaceProps = NULL) { |
| 182 return fDrawingMgr.drawContext(surfaceProps); | 182 return fDrawingMgr.drawContext(surfaceProps); |
| 183 } | 183 } |
| 184 | 184 |
| 185 /////////////////////////////////////////////////////////////////////////// | 185 /////////////////////////////////////////////////////////////////////////// |
| 186 // Misc. | 186 // Misc. |
| 187 | 187 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 /** | 454 /** |
| 455 * A callback similar to the above for use by the TextBlobCache | 455 * A callback similar to the above for use by the TextBlobCache |
| 456 * TODO move textblob draw calls below context so we can use the call above. | 456 * TODO move textblob draw calls below context so we can use the call above. |
| 457 */ | 457 */ |
| 458 static void TextBlobCacheOverBudgetCB(void* data); | 458 static void TextBlobCacheOverBudgetCB(void* data); |
| 459 | 459 |
| 460 typedef SkRefCnt INHERITED; | 460 typedef SkRefCnt INHERITED; |
| 461 }; | 461 }; |
| 462 | 462 |
| 463 #endif | 463 #endif |
| OLD | NEW |