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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGL2RenderingContextBase.cpp

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webgl/WebGL2RenderingContextBase.h" 5 #include "modules/webgl/WebGL2RenderingContextBase.h"
6 6
7 #include "bindings/modules/v8/WebGLAny.h" 7 #include "bindings/modules/v8/WebGLAny.h"
8 #include "core/frame/ImageBitmap.h" 8 #include "core/frame/ImageBitmap.h"
9 #include "core/html/HTMLCanvasElement.h" 9 #include "core/html/HTMLCanvasElement.h"
10 #include "core/html/HTMLImageElement.h" 10 #include "core/html/HTMLImageElement.h"
(...skipping 2674 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 } 2685 }
2686 2686
2687 void WebGL2RenderingContextBase::deleteVertexArray(ScriptState* scriptState, Web GLVertexArrayObject* vertexArray) 2687 void WebGL2RenderingContextBase::deleteVertexArray(ScriptState* scriptState, Web GLVertexArrayObject* vertexArray)
2688 { 2688 {
2689 if (isContextLost() || !vertexArray) 2689 if (isContextLost() || !vertexArray)
2690 return; 2690 return;
2691 2691
2692 if (!vertexArray->isDefaultObject() && vertexArray == m_boundVertexArrayObje ct) 2692 if (!vertexArray->isDefaultObject() && vertexArray == m_boundVertexArrayObje ct)
2693 setBoundVertexArrayObject(scriptState, nullptr); 2693 setBoundVertexArrayObject(scriptState, nullptr);
2694 2694
2695 vertexArray->deleteObject(webContext(), contextGL()); 2695 vertexArray->deleteObject(contextGL());
2696 } 2696 }
2697 2697
2698 GLboolean WebGL2RenderingContextBase::isVertexArray(WebGLVertexArrayObject* vert exArray) 2698 GLboolean WebGL2RenderingContextBase::isVertexArray(WebGLVertexArrayObject* vert exArray)
2699 { 2699 {
2700 if (isContextLost() || !vertexArray) 2700 if (isContextLost() || !vertexArray)
2701 return 0; 2701 return 0;
2702 2702
2703 if (!vertexArray->hasEverBeenBound()) 2703 if (!vertexArray->hasEverBeenBound())
2704 return 0; 2704 return 0;
2705 2705
(...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
3614 params.skipPixels = m_unpackSkipPixels; 3614 params.skipPixels = m_unpackSkipPixels;
3615 params.skipRows = m_unpackSkipRows; 3615 params.skipRows = m_unpackSkipRows;
3616 if (dimension == Tex3D) { 3616 if (dimension == Tex3D) {
3617 params.imageHeight = m_unpackImageHeight; 3617 params.imageHeight = m_unpackImageHeight;
3618 params.skipImages = m_unpackSkipImages; 3618 params.skipImages = m_unpackSkipImages;
3619 } 3619 }
3620 return params; 3620 return params;
3621 } 3621 }
3622 3622
3623 } // namespace blink 3623 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698