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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 sk_sp<GrDrawContext> drawContext(sk_sp<GrRenderTarget> rt, const SkSurfacePr
ops* = nullptr); | 195 sk_sp<GrDrawContext> drawContext(sk_sp<GrRenderTarget> rt, const SkSurfacePr
ops* = nullptr); |
196 | 196 |
197 /** | 197 /** |
198 * Create both a GrRenderTarget and a matching GrDrawContext to wrap it. | 198 * Create both a GrRenderTarget and a matching GrDrawContext to wrap it. |
199 * The created GrRenderTarget will always be budgeted. | 199 * The created GrRenderTarget will always be budgeted. |
200 */ | 200 */ |
201 sk_sp<GrDrawContext> newDrawContext(SkBackingFit fit, | 201 sk_sp<GrDrawContext> newDrawContext(SkBackingFit fit, |
202 int width, int height, | 202 int width, int height, |
203 GrPixelConfig config, | 203 GrPixelConfig config, |
204 int sampleCnt = 0, | 204 int sampleCnt = 0, |
205 GrSurfaceOrigin origin = kDefault_GrSurf
aceOrigin); | 205 GrSurfaceOrigin origin = kDefault_GrSurf
aceOrigin, |
| 206 const SkSurfaceProps* surfaceProps = nul
lptr); |
206 | 207 |
207 /////////////////////////////////////////////////////////////////////////// | 208 /////////////////////////////////////////////////////////////////////////// |
208 // Misc. | 209 // Misc. |
209 | 210 |
210 /** | 211 /** |
211 * Flags that affect flush() behavior. | 212 * Flags that affect flush() behavior. |
212 */ | 213 */ |
213 enum FlushBits { | 214 enum FlushBits { |
214 /** | 215 /** |
215 * A client may reach a point where it has partially rendered a frame | 216 * A client may reach a point where it has partially rendered a frame |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 SkAutoTUnref<const GrCaps> fCaps; | 497 SkAutoTUnref<const GrCaps> fCaps; |
497 uint32_t fContextUniqueID; | 498 uint32_t fContextUniqueID; |
498 | 499 |
499 friend class GrContext; | 500 friend class GrContext; |
500 friend class SkImage; | 501 friend class SkImage; |
501 | 502 |
502 typedef SkRefCnt INHERITED; | 503 typedef SkRefCnt INHERITED; |
503 }; | 504 }; |
504 | 505 |
505 #endif | 506 #endif |
OLD | NEW |