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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 virtual void onErrorMessage(const WebString&, WGC3Dint) = 0; | 123 virtual void onErrorMessage(const WebString&, WGC3Dint) = 0; |
124 | 124 |
125 protected: | 125 protected: |
126 virtual ~WebGraphicsErrorMessageCallback() { } | 126 virtual ~WebGraphicsErrorMessageCallback() { } |
127 }; | 127 }; |
128 | 128 |
129 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. | 129 // This destructor needs to be public so that using classes can destroy inst
ances if initialization fails. |
130 virtual ~WebGraphicsContext3D() { } | 130 virtual ~WebGraphicsContext3D() { } |
131 | 131 |
132 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } | 132 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba
ck) { } |
133 | |
134 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi
ble, and avoid using WebGraphicsContext3D at all. | |
135 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; | |
136 }; | 133 }; |
137 | 134 |
138 } // namespace blink | 135 } // namespace blink |
139 | 136 |
140 #endif | 137 #endif |
OLD | NEW |