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

Unified Diff: Source/platform/graphics/GraphicsContext3D.h

Issue 127163003: Completely removed the Extensions3D class (Take 2) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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 | « Source/platform/graphics/Extensions3D.cpp ('k') | Source/platform/graphics/GraphicsContext3D.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsContext3D.h
diff --git a/Source/platform/graphics/GraphicsContext3D.h b/Source/platform/graphics/GraphicsContext3D.h
index bd807e965aac8cbc10e3ca9a784bfff099c108a6..3bd10a10ff18a1ea3cec0b06150cd1f5296a62df 100644
--- a/Source/platform/graphics/GraphicsContext3D.h
+++ b/Source/platform/graphics/GraphicsContext3D.h
@@ -28,7 +28,6 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/IntRect.h"
-#include "platform/graphics/Extensions3D.h"
#include "platform/graphics/GraphicsTypes3D.h"
#include "platform/graphics/Image.h"
#include "platform/weborigin/KURL.h"
@@ -58,7 +57,6 @@ class WebGraphicsContext3DProvider;
namespace WebCore {
class DrawingBuffer;
-class Extensions3D;
class GraphicsContext3DContextLostCallbackAdapter;
class GraphicsContext3DErrorMessageCallbackAdapter;
class Image;
@@ -304,12 +302,6 @@ public:
// getError in the order they were added.
void synthesizeGLError(GLenum error);
- // Support for extensions. Returns a non-null object, though not
- // all methods it contains may necessarily be supported on the
- // current hardware. Must call Extensions3D::supports() to
- // determine this.
- Extensions3D* extensions();
-
static unsigned getClearBitsByFormat(GLenum);
enum ChannelBits {
@@ -407,14 +399,15 @@ public:
void setPackAlignment(GLint param);
- // Extensions3D support.
+ // Extension support.
bool supportsExtension(const String& name);
bool ensureExtensionEnabled(const String& name);
bool isExtensionEnabled(const String& name);
+ bool canUseCopyTextureCHROMIUM(GLenum destFormat, GLenum destType, GLint level);
-private:
- friend class Extensions3D;
+ void paintFramebufferToCanvas(int framebuffer, int width, int height, bool premultiplyAlpha, ImageBuffer*);
+private:
GraphicsContext3D(PassOwnPtr<blink::WebGraphicsContext3D>, bool preserveDrawingBuffer);
GraphicsContext3D(PassOwnPtr<blink::WebGraphicsContext3DProvider>, bool preserveDrawingBuffer);
GraphicsContext3D(blink::WebGraphicsContext3D* webContext);
@@ -427,7 +420,6 @@ private:
// Implemented in GraphicsContext3DImagePacking.cpp
static bool packPixels(const uint8_t* sourceData, DataFormat sourceDataFormat, unsigned width, unsigned height, unsigned sourceUnpackAlignment, unsigned destinationFormat, unsigned destinationType, AlphaOp, void* destinationData, bool flipY);
- void paintFramebufferToCanvas(int framebuffer, int width, int height, bool premultiplyAlpha, ImageBuffer*);
// Helper function to flip a bitmap vertically.
void flipVertically(uint8_t* data, int width, int height);
@@ -440,7 +432,6 @@ private:
OwnPtr<GraphicsContext3DContextLostCallbackAdapter> m_contextLostCallbackAdapter;
OwnPtr<GraphicsContext3DErrorMessageCallbackAdapter> m_errorMessageCallbackAdapter;
OwnPtr<blink::WebGraphicsContext3D> m_ownedWebContext;
- OwnPtr<Extensions3D> m_extensions;
bool m_initializedAvailableExtensions;
HashSet<String> m_enabledExtensions;
HashSet<String> m_requestableExtensions;
« no previous file with comments | « Source/platform/graphics/Extensions3D.cpp ('k') | Source/platform/graphics/GraphicsContext3D.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698