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

Unified Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.h

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 | « no previous file | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/webgraphicscontext3d_command_buffer_impl.h
===================================================================
--- chrome/renderer/webgraphicscontext3d_command_buffer_impl.h (revision 50735)
+++ chrome/renderer/webgraphicscontext3d_command_buffer_impl.h (working copy)
@@ -13,6 +13,7 @@
#include "chrome/renderer/ggl/ggl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebGraphicsContext3D.h"
#include "third_party/WebKit/WebKit/chromium/public/WebString.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebView.h"
#if !defined(OS_MACOSX)
#define FLIP_FRAMEBUFFER_VERTICALLY
@@ -38,7 +39,12 @@
//----------------------------------------------------------------------
// WebGraphicsContext3D methods
+ // TODO(vangelis): Remove this version of initialize() once the changes
+ // to WebGraphicsContext3D have been checked in upstream.
virtual bool initialize(WebGraphicsContext3D::Attributes attributes);
+ virtual bool initialize(WebGraphicsContext3D::Attributes attributes,
+ WebKit::WebView*);
+
virtual bool makeContextCurrent();
virtual int width();
@@ -52,6 +58,9 @@
virtual bool readBackFramebuffer(unsigned char* pixels, size_t buffer_size);
+ virtual unsigned int getPlatformTextureId();
+ virtual void prepareTexture();
+
virtual void activeTexture(unsigned long texture);
virtual void attachShader(WebGLId program, WebGLId shader);
virtual void bindAttribLocation(WebGLId program, unsigned long index,
« no previous file with comments | « no previous file | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698