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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 1935783002: Delete blink::WebGraphicsContext3D and cc_blink::ContextProviderWebContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sharegroup
Patch Set: rmwgc3d: export 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 82f55a9e8de826c01a1d1b75256d58fe05b013e0..bd99908509bd061f123d58fdc8aad596c6e63c8c 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -40,7 +40,6 @@
#include "public/platform/WebCompositorSupport.h"
#include "public/platform/WebExternalBitmap.h"
#include "public/platform/WebExternalTextureLayer.h"
-#include "public/platform/WebGraphicsContext3D.h"
#include "public/platform/WebGraphicsContext3DProvider.h"
#include "wtf/CheckedNumeric.h"
#include "wtf/typed_arrays/ArrayBufferContents.h"
@@ -137,7 +136,6 @@ DrawingBuffer::DrawingBuffer(
, m_readFramebufferBinding(0)
, m_activeTextureUnit(GL_TEXTURE0)
, m_contextProvider(std::move(contextProvider))
- , m_context(m_contextProvider->context3d())
, m_gl(m_contextProvider->contextGL())
, m_extensionsUtil(std::move(extensionsUtil))
, m_size(-1, -1)
@@ -192,11 +190,6 @@ void DrawingBuffer::setBufferClearNeeded(bool flag)
}
}
-WebGraphicsContext3D* DrawingBuffer::context()
-{
- return m_context;
-}
-
gpu::gles2::GLES2Interface* DrawingBuffer::contextGL()
{
return m_gl;
@@ -480,7 +473,7 @@ bool DrawingBuffer::initialize(const IntSize& size, bool wantDepthBuffer, bool w
return true;
}
-bool DrawingBuffer::copyToPlatformTexture(WebGraphicsContext3D* context, gpu::gles2::GLES2Interface* gl, GLuint texture, GLenum internalFormat,
+bool DrawingBuffer::copyToPlatformTexture(gpu::gles2::GLES2Interface* gl, GLuint texture, GLenum internalFormat,
GLenum destType, GLint level, bool premultiplyAlpha, bool flipY, SourceDrawingBuffer sourceBuffer)
{
if (m_contentsChanged) {

Powered by Google App Engine
This is Rietveld 408576698