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 SkImagePriv_DEFINED | 8 #ifndef SkImagePriv_DEFINED |
9 #define SkImagePriv_DEFINED | 9 #define SkImagePriv_DEFINED |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // surface. This function is used when the surface makes a new texture for itsel
f in order | 49 // surface. This function is used when the surface makes a new texture for itsel
f in order |
50 // for the orphaned image to determine whether the original texture counts again
st the | 50 // for the orphaned image to determine whether the original texture counts again
st the |
51 // budget or not. | 51 // budget or not. |
52 extern void SkTextureImageApplyBudgetedDecision(SkImage* textureImage); | 52 extern void SkTextureImageApplyBudgetedDecision(SkImage* textureImage); |
53 | 53 |
54 // Update the texture wrapped by an image created with NewTexture. This | 54 // Update the texture wrapped by an image created with NewTexture. This |
55 // is called when a surface and image share the same GrTexture and the | 55 // is called when a surface and image share the same GrTexture and the |
56 // surface needs to perform a copy-on-write | 56 // surface needs to perform a copy-on-write |
57 extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture); | 57 extern void SkTextureImageSetTexture(SkImage* image, GrTexture* texture); |
58 | 58 |
59 GrTexture* GrDeepCopyTexture(GrTexture* src, bool isBudgeted); | 59 GrTexture* GrDeepCopyTexture(GrTexture* src, SkBudgeted); |
60 | 60 |
61 #endif | 61 #endif |
OLD | NEW |