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

Unified Diff: cc/output/gl_renderer.cc

Issue 132163004: Remove WebGraphicsContext3D getter from cc::ContextProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 5f443eefa531a48cecaaa34e07acde27de178392..949fa67f10b085196754b348c328098913e9f6b4 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -40,7 +40,6 @@
#include "gpu/command_buffer/client/context_support.h"
#include "gpu/command_buffer/client/gles2_interface.h"
#include "gpu/command_buffer/common/gpu_memory_allocation.h"
-#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/khronos/GLES2/gl2ext.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -55,7 +54,6 @@
#include "ui/gfx/quad_f.h"
#include "ui/gfx/rect_conversions.h"
-using blink::WebGraphicsContext3D;
using gpu::gles2::GLES2Interface;
namespace cc {
@@ -166,7 +164,6 @@ GLRenderer::GLRenderer(RendererClient* client,
: DirectRenderer(client, settings, output_surface, resource_provider),
offscreen_framebuffer_id_(0),
shared_geometry_quad_(gfx::RectF(-0.5f, -0.5f, 1.0f, 1.0f)),
- context_(output_surface->context_provider()->Context3d()),
gl_(output_surface->context_provider()->ContextGL()),
context_support_(output_surface->context_provider()->ContextSupport()),
texture_mailbox_deleter_(texture_mailbox_deleter),
@@ -226,8 +223,6 @@ const RendererCapabilities& GLRenderer::Capabilities() const {
return capabilities_;
}
-WebGraphicsContext3D* GLRenderer::Context() { return context_; }
-
void GLRenderer::DebugGLCall(GLES2Interface* gl,
const char* command,
const char* file,

Powered by Google App Engine
This is Rietveld 408576698