Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkSurface_DEFINED | 8 #ifndef SkSurface_DEFINED |
| 9 #define SkSurface_DEFINED | 9 #define SkSurface_DEFINED |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 /** | 66 /** |
| 67 * This will use signed distance fields for text rendering when possibl e | 67 * This will use signed distance fields for text rendering when possibl e |
| 68 */ | 68 */ |
| 69 kDistanceField_TextRenderMode, | 69 kDistanceField_TextRenderMode, |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 * Return a new surface using the specified render target. | 73 * Return a new surface using the specified render target. |
| 74 */ | 74 */ |
| 75 static SkSurface* NewRenderTargetDirect(GrRenderTarget*, | 75 static SkSurface* NewRenderTargetDirect(GrRenderTarget*, |
| 76 TextRenderMode trm = kStandard_TextR enderMode); | 76 TextRenderMode trm = kStandard_TextR enderMode, |
| 77 bool clear = true); | |
|
bsalomon
2014/06/26 20:37:29
should be make this a flags bitfield (with only on
| |
| 77 | 78 |
| 78 /** | 79 /** |
| 79 * Return a new surface whose contents will be drawn to an offscreen | 80 * Return a new surface whose contents will be drawn to an offscreen |
| 80 * render target, allocated by the surface. | 81 * render target, allocated by the surface. |
| 81 */ | 82 */ |
| 82 static SkSurface* NewRenderTarget(GrContext*, const SkImageInfo&, int sample Count = 0, | 83 static SkSurface* NewRenderTarget(GrContext*, const SkImageInfo&, int sample Count = 0, |
| 83 TextRenderMode trm = kStandard_TextRenderM ode); | 84 TextRenderMode trm = kStandard_TextRenderM ode); |
| 84 | 85 |
| 85 /** | 86 /** |
| 86 * Return a new surface whose contents will be drawn to an offscreen | 87 * Return a new surface whose contents will be drawn to an offscreen |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 195 | 196 |
| 196 private: | 197 private: |
| 197 const int fWidth; | 198 const int fWidth; |
| 198 const int fHeight; | 199 const int fHeight; |
| 199 uint32_t fGenerationID; | 200 uint32_t fGenerationID; |
| 200 | 201 |
| 201 typedef SkRefCnt INHERITED; | 202 typedef SkRefCnt INHERITED; |
| 202 }; | 203 }; |
| 203 | 204 |
| 204 #endif | 205 #endif |
| OLD | NEW |