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

Side by Side Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1852533002: Remove alpha/depth/stencil/antialias from WGC3D::Attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@premul
Patch Set: rm-alphadepthetc: renamevar Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 namespace blink { 46 namespace blink {
47 47
48 // This interface abstracts the operations performed by the 48 // This interface abstracts the operations performed by the
49 // GraphicsContext3D in order to implement WebGL. Nearly all of the 49 // GraphicsContext3D in order to implement WebGL. Nearly all of the
50 // methods exposed on this interface map directly to entry points in 50 // methods exposed on this interface map directly to entry points in
51 // the OpenGL ES 2.0 API. 51 // the OpenGL ES 2.0 API.
52 class WebGraphicsContext3D : public WebNonCopyable { 52 class WebGraphicsContext3D : public WebNonCopyable {
53 public: 53 public:
54 // Context creation attributes. 54 // Context creation attributes.
55 struct Attributes { 55 struct Attributes {
56 bool alpha = true;
57 bool depth = true;
58 bool stencil = true;
59 bool antialias = true;
60 bool shareResources = true; 56 bool shareResources = true;
61 bool preferDiscreteGPU = false; 57 bool preferDiscreteGPU = false;
62 bool noAutomaticFlushes = false; 58 bool noAutomaticFlushes = false;
63 bool failIfMajorPerformanceCaveat = false; 59 bool failIfMajorPerformanceCaveat = false;
64 unsigned webGLVersion = 0; 60 unsigned webGLVersion = 0;
65 // FIXME: ideally this would be a WebURL, but it is currently not 61 // FIXME: ideally this would be a WebURL, but it is currently not
66 // possible to pass a WebURL by value across the WebKit API boundary. 62 // possible to pass a WebURL by value across the WebKit API boundary.
67 // See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 . 63 // See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 .
68 WebString topDocumentURL; 64 WebString topDocumentURL;
69 }; 65 };
(...skipping 16 matching lines...) Expand all
86 82
87 // This destructor needs to be public so that using classes can destroy inst ances if initialization fails. 83 // This destructor needs to be public so that using classes can destroy inst ances if initialization fails.
88 virtual ~WebGraphicsContext3D() { } 84 virtual ~WebGraphicsContext3D() { }
89 85
90 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba ck) { } 86 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba ck) { }
91 }; 87 };
92 88
93 } // namespace blink 89 } // namespace blink
94 90
95 #endif 91 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698