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

Side by Side Diff: Source/WebKit/chromium/public/WebGraphicsContext3D.h

Issue 7664004: Merge 92908 - Readback composited webgl results for printing (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/Extensions3DChromium.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // Query whether it is built on top of compliant GLES2 implementation. 132 // Query whether it is built on top of compliant GLES2 implementation.
133 virtual bool isGLES2Compliant() = 0; 133 virtual bool isGLES2Compliant() = 0;
134 134
135 virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return false; } 135 virtual bool setParentContext(WebGraphicsContext3D* parentContext) { return false; }
136 136
137 // Helper for software compositing path. Reads back the frame buffer into 137 // Helper for software compositing path. Reads back the frame buffer into
138 // the memory region pointed to by "pixels" with size "bufferSize". It is 138 // the memory region pointed to by "pixels" with size "bufferSize". It is
139 // expected that the storage for "pixels" covers (4 * width * height) bytes. 139 // expected that the storage for "pixels" covers (4 * width * height) bytes.
140 // Returns true on success. 140 // Returns true on success.
141 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize) = 0; 141 virtual bool readBackFramebuffer(unsigned char* pixels, size_t bufferSize, W ebGLId framebuffer, int width, int height) = 0;
142 142
143 // Returns the id of the texture which is used for storing the contents of 143 // Returns the id of the texture which is used for storing the contents of
144 // the framebuffer associated with this context. This texture is accessible 144 // the framebuffer associated with this context. This texture is accessible
145 // by the gpu-based page compositor. 145 // by the gpu-based page compositor.
146 virtual WebGLId getPlatformTextureId() = 0; 146 virtual WebGLId getPlatformTextureId() = 0;
147 147
148 // Copies the contents of the off-screen render target used by the WebGL 148 // Copies the contents of the off-screen render target used by the WebGL
149 // context to the corresponding texture used by the compositor. 149 // context to the corresponding texture used by the compositor.
150 virtual void prepareTexture() = 0; 150 virtual void prepareTexture() = 0;
151 151
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // 360 //
361 // This entry point must provide slightly different semantics than 361 // This entry point must provide slightly different semantics than
362 // the GL_ARB_robustness extension; specifically, the lost context 362 // the GL_ARB_robustness extension; specifically, the lost context
363 // state is sticky, rather than reported only once. 363 // state is sticky, rather than reported only once.
364 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */ } 364 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */ }
365 }; 365 };
366 366
367 } // namespace WebKit 367 } // namespace WebKit
368 368
369 #endif 369 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | Source/WebKit/chromium/src/Extensions3DChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698