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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 2698573002: Support offscreen contexts which own their backing surface (Closed)
Patch Set: Rebase and retry again Created 3 years, 10 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
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index d7d3e5c8da3609cda3e662c799d9f0f543848564..2cd733425ef79bd2439da87fd20289c818d43e03 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -460,6 +460,13 @@ class BLINK_PLATFORM_EXPORT Platform {
struct ContextAttributes {
bool failIfMajorPerformanceCaveat = false;
unsigned webGLVersion = 0;
+ // Offscreen contexts usually share a surface for the default frame buffer
+ // since they aren't rendering to it. Setting any of the following
+ // attributes causes creation of a custom surface owned by the context.
+ bool supportAlpha = false;
+ bool supportDepth = false;
+ bool supportAntialias = false;
+ bool supportStencil = false;
};
struct GraphicsInfo {
unsigned vendorId = 0;
« no previous file with comments | « third_party/WebKit/Source/web/WebRuntimeFeatures.cpp ('k') | third_party/WebKit/public/web/WebRuntimeFeatures.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698