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

Unified Diff: include/gpu/GrCaps.h

Issue 1158433006: Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: remove case statement accidentally checked in Created 5 years, 7 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 | « gyp/gpu.gypi ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrCaps.h
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h
index 580017a9fe40283d80ee6f5bee6a7c9398dc8496..be62d8a851972a8cd1182852e34a430696264a46 100644
--- a/include/gpu/GrCaps.h
+++ b/include/gpu/GrCaps.h
@@ -14,6 +14,8 @@
#include "SkRefCnt.h"
#include "SkString.h"
+struct GrContextOptions;
+
class GrShaderCaps : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrShaderCaps)
@@ -103,7 +105,7 @@ class GrCaps : public SkRefCnt {
public:
SK_DECLARE_INST_COUNT(GrCaps)
- GrCaps();
+ GrCaps(const GrContextOptions&);
virtual SkString dump() const;
@@ -186,6 +188,11 @@ public:
return fConfigTextureSupport[config];
}
+ bool suppressPrints() const { return fSupressPrints; }
+
+ bool drawPathMasksToCompressedTexturesSupport() const {
+ return fDrawPathMasksToCompressedTextureSupport; }
+
protected:
SkAutoTUnref<GrShaderCaps> fShaderCaps;
@@ -214,6 +221,9 @@ protected:
bool fConfigTextureSupport[kGrPixelConfigCnt];
private:
+ bool fSupressPrints : 1;
+ bool fDrawPathMasksToCompressedTextureSupport : 1;
+
typedef SkRefCnt INHERITED;
};
« no previous file with comments | « gyp/gpu.gypi ('k') | include/gpu/GrContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698