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

Unified Diff: include/gpu/GrContext.h

Issue 1439533003: Readd "immediate" mode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up Created 5 years, 1 month 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 | « include/gpu/GrCaps.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »
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 c40241656d122146d082856aea04b5f922793b30..098fdd2fe9c2757c4645d885aac9f54e3f1c318a 100644
--- a/include/gpu/GrContext.h
+++ b/include/gpu/GrContext.h
@@ -8,6 +8,7 @@
#ifndef GrContext_DEFINED
#define GrContext_DEFINED
+#include "GrCaps.h"
#include "GrClip.h"
#include "GrColor.h"
#include "GrPaint.h"
@@ -20,7 +21,6 @@
struct GrBatchAtlasConfig;
class GrBatchFontCache;
-class GrCaps;
struct GrContextOptions;
class GrDrawingManager;
class GrDrawContext;
@@ -205,7 +205,7 @@ public:
void flush(int flagsBitfield = 0);
void flushIfNecessary() {
- if (fFlushToReduceCacheSize) {
+ if (fFlushToReduceCacheSize || this->caps()->immediateFlush()) {
this->flush();
}
}
@@ -406,7 +406,7 @@ private:
bool init(GrBackend, GrBackendContext, const GrContextOptions& options);
void initMockContext();
- void initCommon(const GrContextOptions& options);
+ void initCommon();
/**
* These functions create premul <-> unpremul effects if it is possible to generate a pair
« no previous file with comments | « include/gpu/GrCaps.h ('k') | src/gpu/GrCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698