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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/test/MockWebGraphicsContext3D.h

Issue 1808933002: Remove framebufferRenderbuffer and framebufferTexture* from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wgc3d-unused
Patch Set: framebufferRenderbuffer: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void detachShader(WebGLId program, WebGLId shader) { } 91 virtual void detachShader(WebGLId program, WebGLId shader) { }
92 virtual void disable(WGC3Denum cap) { } 92 virtual void disable(WGC3Denum cap) { }
93 virtual void disableVertexAttribArray(WGC3Duint index) { } 93 virtual void disableVertexAttribArray(WGC3Duint index) { }
94 virtual void drawArrays(WGC3Denum mode, WGC3Dint first, WGC3Dsizei count) { } 94 virtual void drawArrays(WGC3Denum mode, WGC3Dint first, WGC3Dsizei count) { }
95 virtual void drawElements(WGC3Denum mode, WGC3Dsizei count, WGC3Denum type, WGC3Dintptr offset) { } 95 virtual void drawElements(WGC3Denum mode, WGC3Dsizei count, WGC3Denum type, WGC3Dintptr offset) { }
96 96
97 virtual void enable(WGC3Denum cap) { } 97 virtual void enable(WGC3Denum cap) { }
98 virtual void enableVertexAttribArray(WGC3Duint index) { } 98 virtual void enableVertexAttribArray(WGC3Duint index) { }
99 virtual void finish() { } 99 virtual void finish() { }
100 virtual void flush() { } 100 virtual void flush() { }
101 virtual void framebufferRenderbuffer(WGC3Denum target, WGC3Denum attachment, WGC3Denum renderbuffertarget, WebGLId renderbuffer) { }
102 virtual void framebufferTexture2D(WGC3Denum target, WGC3Denum attachment, WG C3Denum textarget, WebGLId texture, WGC3Dint level) { }
103 virtual void frontFace(WGC3Denum mode) { } 101 virtual void frontFace(WGC3Denum mode) { }
104 virtual void generateMipmap(WGC3Denum target) { } 102 virtual void generateMipmap(WGC3Denum target) { }
105 103
106 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) { return false; } 104 virtual bool getActiveAttrib(WebGLId program, WGC3Duint index, ActiveInfo&) { return false; }
107 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) { return false; } 105 virtual bool getActiveUniform(WebGLId program, WGC3Duint index, ActiveInfo&) { return false; }
108 virtual void getAttachedShaders(WebGLId program, WGC3Dsizei maxCount, WGC3Ds izei* count, WebGLId* shaders) { } 106 virtual void getAttachedShaders(WebGLId program, WGC3Dsizei maxCount, WGC3Ds izei* count, WebGLId* shaders) { }
109 virtual WGC3Dint getAttribLocation(WebGLId program, const WGC3Dchar* name) { return 0; } 107 virtual WGC3Dint getAttribLocation(WebGLId program, const WGC3Dchar* name) { return 0; }
110 virtual void getBooleanv(WGC3Denum pname, WGC3Dboolean* value) { } 108 virtual void getBooleanv(WGC3Denum pname, WGC3Dboolean* value) { }
111 virtual void getBufferParameteriv(WGC3Denum target, WGC3Denum pname, WGC3Din t* value) { } 109 virtual void getBufferParameteriv(WGC3Denum target, WGC3Denum pname, WGC3Din t* value) { }
112 virtual Attributes getContextAttributes() { return m_attrs; } 110 virtual Attributes getContextAttributes() { return m_attrs; }
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 void fakeContextLost() { m_contextLost = true; } 274 void fakeContextLost() { m_contextLost = true; }
277 protected: 275 protected:
278 unsigned m_nextTextureId; 276 unsigned m_nextTextureId;
279 bool m_contextLost; 277 bool m_contextLost;
280 Attributes m_attrs; 278 Attributes m_attrs;
281 }; 279 };
282 280
283 } // namespace blink 281 } // namespace blink
284 282
285 #endif // MockWebGraphicsContext3D_h 283 #endif // MockWebGraphicsContext3D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698