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

Unified Diff: content/browser/aura/no_transport_image_transport_factory.cc

Issue 120043005: Remove unneeded WebGraphicsContext3D refs from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename provider_cb -> provider_command_buffer 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: content/browser/aura/no_transport_image_transport_factory.cc
diff --git a/content/browser/aura/no_transport_image_transport_factory.cc b/content/browser/aura/no_transport_image_transport_factory.cc
index 7f68e02edaa9032784212ccc3fbd6565bd1d903f..ecb65711ca132e130ce616b7e0167e4bd90868b2 100644
--- a/content/browser/aura/no_transport_image_transport_factory.cc
+++ b/content/browser/aura/no_transport_image_transport_factory.cc
@@ -6,7 +6,7 @@
#include "cc/output/context_provider.h"
#include "content/common/gpu/client/gl_helper.h"
-#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
+#include "gpu/command_buffer/client/gles2_interface.h"
#include "ui/compositor/compositor.h"
namespace content {
@@ -19,7 +19,9 @@ class FakeTexture : public ui::Texture {
float device_scale_factor)
: ui::Texture(false, gfx::Size(), device_scale_factor),
context_provider_(context_provider),
- texture_(context_provider_->Context3d()->createTexture()) {}
+ texture_(0u) {
+ context_provider_->ContextGL()->GenTextures(1, &texture_);
+ }
virtual unsigned int PrepareTexture() OVERRIDE { return texture_; }
@@ -30,7 +32,7 @@ class FakeTexture : public ui::Texture {
private:
virtual ~FakeTexture() {
- context_provider_->Context3d()->deleteTexture(texture_);
+ context_provider_->ContextGL()->DeleteTextures(1, &texture_);
}
scoped_refptr<cc::ContextProvider> context_provider_;

Powered by Google App Engine
This is Rietveld 408576698