| 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 | 9 |
| 10 #ifndef GrContext_DEFINED | 10 #ifndef GrContext_DEFINED |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they | 922 * of effects that make a readToUPM->writeToPM->readToUPM cycle invariant. O
therwise, they |
| 923 * return NULL. | 923 * return NULL. |
| 924 */ | 924 */ |
| 925 const GrEffectRef* createPMToUPMEffect(GrTexture* texture, | 925 const GrEffectRef* createPMToUPMEffect(GrTexture* texture, |
| 926 bool swapRAndB, | 926 bool swapRAndB, |
| 927 const SkMatrix& matrix); | 927 const SkMatrix& matrix); |
| 928 const GrEffectRef* createUPMToPMEffect(GrTexture* texture, | 928 const GrEffectRef* createUPMToPMEffect(GrTexture* texture, |
| 929 bool swapRAndB, | 929 bool swapRAndB, |
| 930 const SkMatrix& matrix); | 930 const SkMatrix& matrix); |
| 931 | 931 |
| 932 /** |
| 933 * This callback allows the resource cache to callback into the GrContext |
| 934 * when the cache is still overbudget after a purge. |
| 935 */ |
| 936 static bool OverbudgetCB(void* data); |
| 937 |
| 932 typedef GrRefCnt INHERITED; | 938 typedef GrRefCnt INHERITED; |
| 933 }; | 939 }; |
| 934 | 940 |
| 935 /** | 941 /** |
| 936 * Gets and locks a scratch texture from a descriptor using either exact or appr
oximate criteria. | 942 * Gets and locks a scratch texture from a descriptor using either exact or appr
oximate criteria. |
| 937 * Unlocks texture in the destructor. | 943 * Unlocks texture in the destructor. |
| 938 */ | 944 */ |
| 939 class GrAutoScratchTexture : ::GrNoncopyable { | 945 class GrAutoScratchTexture : ::GrNoncopyable { |
| 940 public: | 946 public: |
| 941 GrAutoScratchTexture() | 947 GrAutoScratchTexture() |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 } | 1018 } |
| 1013 | 1019 |
| 1014 GrTexture* texture() { return fTexture; } | 1020 GrTexture* texture() { return fTexture; } |
| 1015 | 1021 |
| 1016 private: | 1022 private: |
| 1017 GrContext* fContext; | 1023 GrContext* fContext; |
| 1018 GrTexture* fTexture; | 1024 GrTexture* fTexture; |
| 1019 }; | 1025 }; |
| 1020 | 1026 |
| 1021 #endif | 1027 #endif |
| OLD | NEW |