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

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

Issue 1424673002: Use Non-static member initialization for attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/WebGraphicsContext3D.h
diff --git a/third_party/WebKit/public/platform/WebGraphicsContext3D.h b/third_party/WebKit/public/platform/WebGraphicsContext3D.h
index 6122c50de2a0d93c246c033b77aff95cc9b7f687..5e0521e881b032fa8d4c5b460b33d6b0ddf9f267 100644
--- a/third_party/WebKit/public/platform/WebGraphicsContext3D.h
+++ b/third_party/WebKit/public/platform/WebGraphicsContext3D.h
@@ -78,36 +78,19 @@ public:
// Context creation attributes.
struct Attributes {
- Attributes()
- : alpha(true)
- , depth(true)
- , stencil(true)
- , antialias(true)
- , premultipliedAlpha(true)
- , canRecoverFromContextLoss(true)
- , noExtensions(false)
- , shareResources(true)
- , preferDiscreteGPU(false)
- , noAutomaticFlushes(false)
- , failIfMajorPerformanceCaveat(false)
- , webGL(false)
- , webGLVersion(0)
- {
- }
-
- bool alpha;
- bool depth;
- bool stencil;
- bool antialias;
- bool premultipliedAlpha;
- bool canRecoverFromContextLoss;
- bool noExtensions;
- bool shareResources;
- bool preferDiscreteGPU;
- bool noAutomaticFlushes;
- bool failIfMajorPerformanceCaveat;
- bool webGL;
- unsigned webGLVersion;
+ bool alpha = true;
+ bool depth = true;
+ bool stencil = true;
+ bool antialias = true;
+ bool premultipliedAlpha = true;
+ bool canRecoverFromContextLoss = true;
+ bool noExtensions = false;
+ bool shareResources = true;
+ bool preferDiscreteGPU = false;
+ bool noAutomaticFlushes = false;
+ bool failIfMajorPerformanceCaveat = false;
+ bool webGL = false;
+ unsigned webGLVersion = 0;
// FIXME: ideally this would be a WebURL, but it is currently not
// possible to pass a WebURL by value across the WebKit API boundary.
// See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 .
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698