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

Unified Diff: trunk/src/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 12915008: Revert 189820 "Lazy initialize WGC3DInProcessCommandBufferImpl". Causing checkfailures. (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 9 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
Index: trunk/src/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h
===================================================================
--- trunk/src/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h (revision 189974)
+++ trunk/src/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h (working copy)
@@ -50,10 +50,12 @@
: public NON_EXPORTED_BASE(WebKit::WebGraphicsContext3D) {
public:
- WebGraphicsContext3DInProcessCommandBufferImpl(
- const WebKit::WebGraphicsContext3D::Attributes& attributes);
+ WebGraphicsContext3DInProcessCommandBufferImpl();
virtual ~WebGraphicsContext3DInProcessCommandBufferImpl();
+ bool Initialize(WebKit::WebGraphicsContext3D::Attributes attributes,
+ WebKit::WebGraphicsContext3D* view_context);
+
//----------------------------------------------------------------------
// WebGraphicsContext3D methods
virtual bool makeContextCurrent();
@@ -511,15 +513,10 @@
void OnSwapBuffersComplete();
virtual void OnContextLost();
- bool MaybeInitializeGL();
-
// Used to try to find bugs in code that calls gl directly through the gl api
// instead of going through WebGraphicsContext3D.
void ClearContext();
- bool initialized_;
- bool initialize_failed_;
-
// The context we use for OpenGL rendering.
GLInProcessContext* context_;
// The GLES2Implementation we use for OpenGL rendering.

Powered by Google App Engine
This is Rietveld 408576698