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

Unified Diff: include/gpu/GrTypes.h

Issue 1290813002: Add support for a new GPU interface (Closed) Base URL: https://chromium.googlesource.com/skia@master
Patch Set: Get rid of test #defines Created 5 years, 4 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/GrContextFactory.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrTypes.h
diff --git a/include/gpu/GrTypes.h b/include/gpu/GrTypes.h
index 1f83b64d9dcd01535fb983e2752312a97e147003..ffc00c8aa956675b075f35563504eb828ef422aa 100644
--- a/include/gpu/GrTypes.h
+++ b/include/gpu/GrTypes.h
@@ -126,7 +126,11 @@ static inline int GrNextPow2(int n) {
*/
enum GrBackend {
kOpenGL_GrBackend,
+ kVulkan_GrBackend,
+
+ kLast_GrBackend = kVulkan_GrBackend
};
+const int kBackendCount = kLast_GrBackend + 1;
/**
* Backend-specific 3D context handle
« no previous file with comments | « no previous file | src/gpu/GrContextFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698