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

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

Issue 481433002: gpu: Remove WebGraphicsContext3D::makeContextCurrent() in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase to ToT Created 6 years, 3 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 | « Source/platform/graphics/test/MockWebGraphicsContext3D.h ('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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 protected: 140 protected:
141 virtual ~WebGraphicsSwapBuffersCompleteCallbackCHROMIUM() { } 141 virtual ~WebGraphicsSwapBuffersCompleteCallbackCHROMIUM() { }
142 }; 142 };
143 143
144 // This destructor needs to be public so that using classes can destroy inst ances if initialization fails. 144 // This destructor needs to be public so that using classes can destroy inst ances if initialization fails.
145 virtual ~WebGraphicsContext3D() { } 145 virtual ~WebGraphicsContext3D() { }
146 146
147 // Makes the OpenGL context current on the current thread. Returns true on 147 // Makes the OpenGL context current on the current thread. Returns true on
148 // success. 148 // success.
149 virtual bool makeContextCurrent() = 0; 149 // TODO(dshwang): remove it. crbug.com/404121
150 virtual bool makeContextCurrent() { return true; }
150 151
151 // Each flush or finish is assigned an unique ID. The larger 152 // Each flush or finish is assigned an unique ID. The larger
152 // the ID number, the more recently the context has been flushed. 153 // the ID number, the more recently the context has been flushed.
153 virtual uint32_t lastFlushID() { return 0; } 154 virtual uint32_t lastFlushID() { return 0; }
154 155
155 // Resizes the region into which this WebGraphicsContext3D is drawing. 156 // Resizes the region into which this WebGraphicsContext3D is drawing.
156 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor ) { } 157 virtual void reshapeWithScaleFactor(int width, int height, float scaleFactor ) { }
157 158
158 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer 159 // GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer
159 virtual void setVisibilityCHROMIUM(bool visible) = 0; 160 virtual void setVisibilityCHROMIUM(bool visible) = 0;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { } 474 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { }
474 475
475 // GL_EXT_multisampled_render_to_texture 476 // GL_EXT_multisampled_render_to_texture
476 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam ples) { } 477 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam ples) { }
477 virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { }; 478 virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { };
478 }; 479 };
479 480
480 } // namespace blink 481 } // namespace blink
481 482
482 #endif 483 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/test/MockWebGraphicsContext3D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698