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

Unified Diff: experimental/c_salt/browser_3d_device.h

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 | « experimental/build.scons ('k') | experimental/c_salt/c_salt.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/c_salt/browser_3d_device.h
diff --git a/experimental/c_salt/browser_3d_device.h b/experimental/c_salt/browser_3d_device.h
deleted file mode 100644
index 1618a92ad07e15a24830f77dfd8f549b65411354..0000000000000000000000000000000000000000
--- a/experimental/c_salt/browser_3d_device.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2010 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can
-// be found in the LICENSE file.
-
-#ifndef C_SALT_BROWSER_3D_DEVICE_H_
-#define C_SALT_BROWSER_3D_DEVICE_H_
-
-///
-/// @file
-/// Browser3DContext provides the browser-specific support for managing an
-/// 3D context in the browser. Currently, all 3D browser contexts support
-/// OpenGL ES 2.0.
-/// @see c_salt/opengl_context.h
-///
-
-#include <pgl/pgl.h>
-
-namespace c_salt {
-class Instance;
-class OpenGLContext;
-
-///
-/// @class Browser3DContext
-/// @a Browser3DContext manages access to the 3D device in the browser and a 3D
-/// rendering context on that device. A newly constructed @a Browser3DContext
-/// is invalid until @a AcquireBrowser3DDevice() is called. After acquiring
-/// the 3D device in the browser, you then have to create a context by calling
-/// @a CreateBrowser3DContext().
-/// @see AcquireBrowser3DDevice()
-/// @see CreateBrowser3DContext()
-///
-class Browser3DDevice {
- public:
- /// Deletes all active in-browser 3D contexts and releases the 3D device.
- virtual ~Browser3DDevice() {}
-
- /// Acquire the 3D device in the browser that is associated with the
- /// @a Instance instance passed into the ctor.
- /// @return success.
- virtual bool AcquireBrowser3DDevice() = 0;
-
- /// Create a 3D rendering context in the browser, and bind to @a context.
- /// This can be called more than once to create many 3D rendering contexts
- /// associated with the browser's 3D device.
- virtual PGLContext CreateBrowser3DContext(OpenGLContext* context) = 0;
-
- /// Delete the in-browser 3D context and release the 3D device. After calling
- /// this method, the context is no longer valid.
- virtual void DeleteBrowser3DContext() = 0;
-
- /// The browser context is considered valid when the 3D device has been
- /// succesfully acquired, and a 3D context has been initialized.
- /// @return true if the 3D device is aquired.
- virtual bool is_valid() const = 0;
-};
-
-/// Browser-specific subclasses must implement this factory method. The caller
-/// takes ownership of the returned object.
-/// @param instance The Instance instance associated with the in-browser
-/// 3D device and context.
-/// @return A newly-created Browser3DDevice instance.
-Browser3DDevice* CreateBrowser3DDevice(const Instance& instance);
-
-} // namespace c_salt
-#endif // C_SALT_BROWSER_3D_DEVICE_H_
« no previous file with comments | « experimental/build.scons ('k') | experimental/c_salt/c_salt.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698