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

Unified Diff: include/gpu/GrContext.h

Issue 2307053002: Restructure flushing relationship between GrContext, GrDrawingManager, and GrResourceCache. (Closed)
Patch Set: cleanup Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | src/gpu/GrDrawingManager.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrContext.h
diff --git a/include/gpu/GrContext.h b/include/gpu/GrContext.h
index 5785553dfdeae753b36233d1c81b2e3bfa663cea..749f235a643dbf702d803df76bc2e309054dc787 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -198,31 +198,10 @@ public:
// Misc.
/**
- * Flags that affect flush() behavior.
- */
- enum FlushBits {
- /**
- * A client may reach a point where it has partially rendered a frame
- * through a GrContext that it knows the user will never see. This flag
- * causes the flush to skip submission of deferred content to the 3D API
- * during the flush.
- */
- kDiscard_FlushBit = 0x2,
- };
-
- /**
* Call to ensure all drawing to the context has been issued to the
* underlying 3D API.
- * @param flagsBitfield flags that control the flushing behavior. See
- * FlushBits.
*/
- void flush(int flagsBitfield = 0);
-
- void flushIfNecessary() {
- if (fFlushToReduceCacheSize || this->caps()->immediateFlush()) {
- this->flush();
- }
- }
+ void flush();
/**
* These flags can be used with the read/write pixels functions below.
@@ -456,12 +435,6 @@ private:
bool didFailPMUPMConversionTest() const;
/**
- * This callback allows the resource cache to callback into the GrContext
- * when the cache is still over budget after a purge.
- */
- static void OverBudgetCB(void* data);
-
- /**
* A callback similar to the above for use by the TextBlobCache
* TODO move textblob draw calls below context so we can use the call above.
*/
« no previous file with comments | « no previous file | src/gpu/GrContext.cpp » ('j') | src/gpu/GrDrawingManager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698