| Index: Source/core/platform/graphics/GraphicsContext3D.cpp
|
| diff --git a/Source/core/platform/graphics/GraphicsContext3D.cpp b/Source/core/platform/graphics/GraphicsContext3D.cpp
|
| index 3d649282dc00fe13c8f22222aa47d96cab47aca6..b93fa8d929f298ccb8e249fcc3d43d7b311c9bb8 100644
|
| --- a/Source/core/platform/graphics/GraphicsContext3D.cpp
|
| +++ b/Source/core/platform/graphics/GraphicsContext3D.cpp
|
| @@ -68,15 +68,10 @@ namespace {
|
| void getDrawingParameters(DrawingBuffer* drawingBuffer, WebKit::WebGraphicsContext3D* graphicsContext3D,
|
| Platform3DObject* frameBufferId, int* width, int* height)
|
| {
|
| - if (drawingBuffer) {
|
| - *frameBufferId = drawingBuffer->framebuffer();
|
| - *width = drawingBuffer->size().width();
|
| - *height = drawingBuffer->size().height();
|
| - } else {
|
| - *frameBufferId = 0;
|
| - *width = graphicsContext3D->width();
|
| - *height = graphicsContext3D->height();
|
| - }
|
| + ASSERT(drawingBuffer);
|
| + *frameBufferId = drawingBuffer->framebuffer();
|
| + *width = drawingBuffer->size().width();
|
| + *height = drawingBuffer->size().height();
|
| }
|
|
|
| } // anonymous namespace
|
| @@ -572,14 +567,6 @@ DELEGATE_TO_WEBCONTEXT_6(vertexAttribPointer, GC3Duint, GC3Dint, GC3Denum, GC3Db
|
|
|
| DELEGATE_TO_WEBCONTEXT_4(viewport, GC3Dint, GC3Dint, GC3Dsizei, GC3Dsizei)
|
|
|
| -void GraphicsContext3D::reshape(int width, int height)
|
| -{
|
| - if (width == m_impl->width() && height == m_impl->height())
|
| - return;
|
| -
|
| - m_impl->reshape(width, height);
|
| -}
|
| -
|
| void GraphicsContext3D::markContextChanged()
|
| {
|
| m_layerComposited = false;
|
|
|