Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Side by Side Diff: include/gpu/GrContext.h

Issue 18466005: Allow the resource cache to (indirectly) flush the InOrderDrawBuffer (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed code review issues Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698