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

Unified Diff: gpu/command_buffer/service/gl_context_stub.cc

Issue 2134006: Added EGL based GLContext.... (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 | « gpu/command_buffer/common/unittest_main.cc ('k') | gpu/command_buffer/service/gl_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gl_context_stub.cc
===================================================================
--- gpu/command_buffer/service/gl_context_stub.cc (revision 49195)
+++ gpu/command_buffer/service/gl_context_stub.cc (working copy)
@@ -1,44 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// This file implements the StubGLContext.
-
-#include "build/build_config.h"
-#include "app/gfx/gl/gl_context.h"
-
-namespace gpu {
-
-// A GLContext that does nothing for unit tests.
-class StubGLContext : public gfx::GLContext {
- public:
-
- // Implement GLContext.
- virtual void Destroy() {}
- virtual bool MakeCurrent() { return true; }
- virtual bool IsCurrent() { return true; }
- virtual bool IsOffscreen() { return true; }
- virtual void SwapBuffers() {}
- virtual gfx::Size GetSize() { return gfx::Size(); }
- virtual void* GetHandle() { return NULL; }
-};
-
-} // namespace gpu
-
-namespace gfx {
-
-#if !defined(OS_MACOSX)
-
-GLContext* GLContext::CreateViewGLContext(PluginWindowHandle /* window */,
- bool /* multisampled */) {
- return new gpu::StubGLContext;
-}
-
-#endif // OS_MACOSX
-
-GLContext* GLContext::CreateOffscreenGLContext(
- void* /* shared_handle */) {
- return new gpu::StubGLContext;
-}
-
-} // namespace gfx
« no previous file with comments | « gpu/command_buffer/common/unittest_main.cc ('k') | gpu/command_buffer/service/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698