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

Unified Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc

Issue 2864021: Adding a new signature for WebGraphicsContext3DCommandBufferImpl::initialize(... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc
===================================================================
--- chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (revision 50735)
+++ chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc (working copy)
@@ -28,7 +28,15 @@
}
}
+// TODO(vangelis): Properly implement this method once the upstream WebKit
+// changes have landed.
bool WebGraphicsContext3DCommandBufferImpl::initialize(
+ WebGraphicsContext3D::Attributes attributes,
+ WebKit::WebView*) {
+ return initialize(attributes);
+}
+
+bool WebGraphicsContext3DCommandBufferImpl::initialize(
WebGraphicsContext3D::Attributes attributes) {
RenderThread* render_thread = RenderThread::current();
if (!render_thread)
@@ -81,6 +89,17 @@
return true;
}
+unsigned int WebGraphicsContext3DCommandBufferImpl::getPlatformTextureId() {
+ DCHECK(context_);
+ return ggl::GetParentTextureId(context_);
+}
+
+void WebGraphicsContext3DCommandBufferImpl::prepareTexture() {
+ // Copies the contents of the off-screen render target into the texture
+ // used by the compositor.
+ ggl::SwapBuffers(context_);
+}
+
void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) {
cached_width_ = width;
cached_height_ = height;
« no previous file with comments | « chrome/renderer/webgraphicscontext3d_command_buffer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698