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

Side by Side Diff: Source/WebKit/chromium/tests/FakeWebGraphicsContext3D.h

Issue 16201002: Remove unused methods in WebGraphicsContext3D: isGLES2Compliant() and getPlatformTextureId() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase to upstream Created 7 years, 6 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 | « no previous file | public/platform/WebGraphicsContext3D.h » ('j') | 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) 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 29 matching lines...) Expand all
40 { 40 {
41 } 41 }
42 42
43 virtual bool makeContextCurrent() { return true; } 43 virtual bool makeContextCurrent() { return true; }
44 44
45 virtual int width() { return 0; } 45 virtual int width() { return 0; }
46 virtual int height() { return 0; } 46 virtual int height() { return 0; }
47 47
48 virtual void reshape(int width, int height) { } 48 virtual void reshape(int width, int height) { }
49 49
50 virtual bool isGLES2Compliant() { return false; }
51
52 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W ebGLId framebuffer, int width, int height) { return false; } 50 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W ebGLId framebuffer, int width, int height) { return false; }
53 51
54 virtual WebGLId getPlatformTextureId() { return 0; }
55
56 virtual void prepareTexture() { } 52 virtual void prepareTexture() { }
57 53
58 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { } 54 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { }
59 55
60 virtual void synthesizeGLError(WGC3Denum) { } 56 virtual void synthesizeGLError(WGC3Denum) { }
61 57
62 virtual bool isContextLost() { return false; } 58 virtual bool isContextLost() { return false; }
63 59
64 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) { return 0; } 60 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) { return 0; }
65 virtual void unmapBufferSubDataCHROMIUM(const void*) { } 61 virtual void unmapBufferSubDataCHROMIUM(const void*) { }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } 268 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { }
273 269
274 protected: 270 protected:
275 unsigned m_nextTextureId; 271 unsigned m_nextTextureId;
276 Attributes m_attrs; 272 Attributes m_attrs;
277 }; 273 };
278 274
279 } // namespace WebKit 275 } // namespace WebKit
280 276
281 #endif // FakeWebGraphicsContext3D_h 277 #endif // FakeWebGraphicsContext3D_h
OLDNEW
« no previous file with comments | « no previous file | public/platform/WebGraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698