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

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

Issue 17859003: Allow DrawingBuffer to present to a bitmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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 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 readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W ebGLId framebuffer, int width, int height) { return false; }
51
52 virtual void prepareTexture() { } 50 virtual void prepareTexture() { }
53 51
54 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { } 52 virtual void postSubBufferCHROMIUM(int x, int y, int width, int height) { }
55 53
56 virtual void synthesizeGLError(WGC3Denum) { } 54 virtual void synthesizeGLError(WGC3Denum) { }
57 55
58 virtual bool isContextLost() { return false; } 56 virtual bool isContextLost() { return false; }
59 57
60 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) { return 0; } 58 virtual void* mapBufferSubDataCHROMIUM(WGC3Denum target, WGC3Dintptr offset, WGC3Dsizeiptr size, WGC3Denum access) { return 0; }
61 virtual void unmapBufferSubDataCHROMIUM(const void*) { } 59 virtual void unmapBufferSubDataCHROMIUM(const void*) { }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { } 266 virtual void getQueryObjectuivEXT(WebGLId, GC3Denum, GC3Duint*) { }
269 267
270 protected: 268 protected:
271 unsigned m_nextTextureId; 269 unsigned m_nextTextureId;
272 Attributes m_attrs; 270 Attributes m_attrs;
273 }; 271 };
274 272
275 } // namespace WebKit 273 } // namespace WebKit
276 274
277 #endif // FakeWebGraphicsContext3D_h 275 #endif // FakeWebGraphicsContext3D_h
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/tests/DrawingBufferTest.cpp ('k') | Source/core/platform/graphics/GraphicsContext3D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698