[chromium] Revert changes which added setResourceUsageCHROMIUM gl extension...

[chromium] Revert changes which added setResourceUsageCHROMIUM gl extension since feature changed directions
https://bugs.webkit.org/show_bug.cgi?id=77120

Patch by Michal Mocny <mmocny@google.com> on 2012-01-26
Reviewed by Kenneth Russell.

* public/platform/WebGraphicsContext3D.h:
(WebGraphicsContext3D):
* src/GraphicsContext3DChromium.cpp:
(WebCore):
* tests/FakeWebGraphicsContext3D.h:
(WebKit::FakeWebGraphicsContext3D::setVisibilityCHROMIUM):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 55b3a2aa
2012-01-26 Michal Mocny <mmocny@google.com>
[chromium] Revert changes which added setResourceUsageCHROMIUM gl extension since feature changed directions
https://bugs.webkit.org/show_bug.cgi?id=77120
Reviewed by Kenneth Russell.
* public/platform/WebGraphicsContext3D.h:
(WebGraphicsContext3D):
* src/GraphicsContext3DChromium.cpp:
(WebCore):
* tests/FakeWebGraphicsContext3D.h:
(WebKit::FakeWebGraphicsContext3D::setVisibilityCHROMIUM):
2012-01-26 Sadrul Habib Chowdhury <sadrul@chromium.org>
Add GestureTapDown and GestureDoubleTap gesture types to WebGestureEvent.
......
......@@ -124,13 +124,6 @@ public:
virtual ~WebGraphicsSwapBuffersCompleteCallbackCHROMIUM() { }
};
// Graphics Resource Usage
enum ResourceUsage {
RESOURCE_USAGE_FULL,
RESOURCE_USAGE_LESS,
RESOURCE_USAGE_NONE,
};
// This destructor needs to be public so that using classes can destroy instances if initialization fails.
virtual ~WebGraphicsContext3D() {}
......@@ -150,10 +143,8 @@ public:
// Resizes the region into which this WebGraphicsContext3D is drawing.
virtual void reshape(int width, int height) = 0;
// GL_CHROMIUM_resource_usage - use/drop various resources, such as front/back buffers
// TODO(mmocny): remove visibility once chromium patch lands
virtual void setVisibilityCHROMIUM(bool visible) { }
virtual void setResourceUsageCHROMIUM(ResourceUsage) { }
// GL_CHROMIUM_setVisibility - Changes the visibility of the backbuffer
virtual void setVisibilityCHROMIUM(bool visible) = 0;
// Query whether it is built on top of compliant GLES2 implementation.
virtual bool isGLES2Compliant() = 0;
......
......@@ -891,13 +891,6 @@ bool GraphicsContext3DPrivate::isExtensionEnabled(const String& name)
return m_enabledExtensions.contains(mappedName);
}
void GraphicsContext3DPrivate::setVisibilityCHROMIUM(bool visibility)
{
// TODO(mmocny): remove visibility once chromium patch lands
m_impl->setVisibilityCHROMIUM(visibility);
m_impl->setResourceUsageCHROMIUM(visibility ? WebKit::WebGraphicsContext3D::RESOURCE_USAGE_FULL : WebKit::WebGraphicsContext3D::RESOURCE_USAGE_LESS);
}
DELEGATE_TO_IMPL_4(postSubBufferCHROMIUM, int, int, int, int)
DELEGATE_TO_IMPL_4R(mapBufferSubDataCHROMIUM, GC3Denum, GC3Dsizeiptr, GC3Dsizei, GC3Denum, void*)
......@@ -905,6 +898,8 @@ DELEGATE_TO_IMPL_1(unmapBufferSubDataCHROMIUM, const void*)
DELEGATE_TO_IMPL_9R(mapTexSubImage2DCHROMIUM, GC3Denum, GC3Dint, GC3Dint, GC3Dint, GC3Dsizei, GC3Dsizei, GC3Denum, GC3Denum, GC3Denum, void*)
DELEGATE_TO_IMPL_1(unmapTexSubImage2DCHROMIUM, const void*)
DELEGATE_TO_IMPL_1(setVisibilityCHROMIUM, bool);
DELEGATE_TO_IMPL_10(blitFramebufferCHROMIUM, GC3Dint, GC3Dint, GC3Dint, GC3Dint, GC3Dint, GC3Dint, GC3Dint, GC3Dint, GC3Dbitfield, GC3Denum)
DELEGATE_TO_IMPL_5(renderbufferStorageMultisampleCHROMIUM, GC3Denum, GC3Dsizei, GC3Denum, GC3Dsizei, GC3Dsizei)
......
......@@ -63,7 +63,7 @@ public:
virtual void* mapTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, WGC3Denum access) { return 0; }
virtual void unmapTexSubImage2DCHROMIUM(const void*) { }
virtual void setResourceUsageCHROMIUM(ResourceUsage) { }
virtual void setVisibilityCHROMIUM(bool visible) { }
virtual WebString getRequestableExtensionsCHROMIUM() { return WebString(); }
virtual void requestExtensionCHROMIUM(const char*) { }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment