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

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

Issue 1812363002: Remove genSyncTokenCHROMIUM from WebGraphicsContext3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simples-tplus
Patch Set: gensynctoken: rebase Created 4 years, 9 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 public: 130 public:
131 virtual void onErrorMessage(const WebString&, WGC3Dint) = 0; 131 virtual void onErrorMessage(const WebString&, WGC3Dint) = 0;
132 132
133 protected: 133 protected:
134 virtual ~WebGraphicsErrorMessageCallback() { } 134 virtual ~WebGraphicsErrorMessageCallback() { }
135 }; 135 };
136 136
137 // This destructor needs to be public so that using classes can destroy inst ances if initialization fails. 137 // This destructor needs to be public so that using classes can destroy inst ances if initialization fails.
138 virtual ~WebGraphicsContext3D() { } 138 virtual ~WebGraphicsContext3D() { }
139 139
140 virtual bool genSyncTokenCHROMIUM(WGC3Duint64, WGC3Dbyte*) { return false; }
141
142 // Synthesizes an OpenGL error which will be returned from a 140 // Synthesizes an OpenGL error which will be returned from a
143 // later call to getError. This is used to emulate OpenGL ES 141 // later call to getError. This is used to emulate OpenGL ES
144 // 2.0 behavior on the desktop and to enforce additional error 142 // 2.0 behavior on the desktop and to enforce additional error
145 // checking mandated by WebGL. 143 // checking mandated by WebGL.
146 // 144 //
147 // Per the behavior of glGetError, this stores at most one 145 // Per the behavior of glGetError, this stores at most one
148 // instance of any given error, and returns them from calls to 146 // instance of any given error, and returns them from calls to
149 // getError in the order they were added. 147 // getError in the order they were added.
150 virtual void synthesizeGLError(WGC3Denum) = 0; 148 virtual void synthesizeGLError(WGC3Denum) = 0;
151 149
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum type, WGC3Dsizei stride, WGC3Dintptr pointer) { } 258 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum type, WGC3Dsizei stride, WGC3Dintptr pointer) { }
261 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo ut) { } 259 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo ut) { }
262 260
263 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi ble, and avoid using WebGraphicsContext3D at all. 261 // Prefer getting a GLES2Interface off WebGraphicsContext3DProvider if possi ble, and avoid using WebGraphicsContext3D at all.
264 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0; 262 virtual gpu::gles2::GLES2Interface* getGLES2Interface() = 0;
265 }; 263 };
266 264
267 } // namespace blink 265 } // namespace blink
268 266
269 #endif 267 #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