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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLContextAttributeHelpers.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebGLContextAttributeHelpers_h 5 #ifndef WebGLContextAttributeHelpers_h
6 #define WebGLContextAttributeHelpers_h 6 #define WebGLContextAttributeHelpers_h
7 7
8 #include "core/html/canvas/CanvasContextCreationAttributes.h" 8 #include "core/html/canvas/CanvasContextCreationAttributes.h"
9 #include "modules/webgl/WebGLContextAttributes.h" 9 #include "modules/webgl/WebGLContextAttributes.h"
10 #include "public/platform/WebGraphicsContext3D.h" 10 #include "public/platform/WebGraphicsContext3D.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Settings; 14 class Settings;
15 15
16 WebGLContextAttributes toWebGLContextAttributes(const CanvasContextCreationAttri butes&); 16 WebGLContextAttributes toWebGLContextAttributes(const CanvasContextCreationAttri butes&);
17 17
18 // Set up the attributes that can be used to initialize a WebGraphicsContext3D. 18 // Set up the attributes that can be used to initialize a WebGraphicsContext3D.
19 // It's mostly based on WebGLContextAttributes, but may be adjusted based 19 // It's mostly based on WebGLContextAttributes, but may be adjusted based
20 // on settings. 20 // on settings.
21 WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLCon textAttributes&, const WebString&, Settings*, unsigned webGLVersion); 21 WebGraphicsContext3D::Attributes toWebGraphicsContext3DAttributes(const WebGLCon textAttributes&, const WebString&, unsigned webGLVersion);
22 22
23 } // namespace blink 23 } // namespace blink
24 24
25 #endif // WebGLContextAttributeHelpers_h 25 #endif // WebGLContextAttributeHelpers_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698