| OLD | NEW |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 56 bool alpha = true; |
| 57 bool depth = true; | 57 bool depth = true; |
| 58 bool stencil = true; | 58 bool stencil = true; |
| 59 bool antialias = true; | 59 bool antialias = true; |
| 60 bool premultipliedAlpha = true; | |
| 61 bool shareResources = true; | 60 bool shareResources = true; |
| 62 bool preferDiscreteGPU = false; | 61 bool preferDiscreteGPU = false; |
| 63 bool noAutomaticFlushes = false; | 62 bool noAutomaticFlushes = false; |
| 64 bool failIfMajorPerformanceCaveat = false; | 63 bool failIfMajorPerformanceCaveat = false; |
| 65 unsigned webGLVersion = 0; | 64 unsigned webGLVersion = 0; |
| 66 // FIXME: ideally this would be a WebURL, but it is currently not | 65 // FIXME: ideally this would be a WebURL, but it is currently not |
| 67 // possible to pass a WebURL by value across the WebKit API boundary. | 66 // possible to pass a WebURL by value across the WebKit API boundary. |
| 68 // See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 . | 67 // See https://bugs.webkit.org/show_bug.cgi?id=103793#c13 . |
| 69 WebString topDocumentURL; | 68 WebString topDocumentURL; |
| 70 }; | 69 }; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 87 | 86 |
| 88 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. | 87 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. |
| 89 virtual ~WebGraphicsContext3D() { } | 88 virtual ~WebGraphicsContext3D() { } |
| 90 | 89 |
| 91 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } | 90 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace blink | 93 } // namespace blink |
| 95 | 94 |
| 96 #endif | 95 #endif |
| OLD | NEW |