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

Unified Diff: cc/test/test_web_graphics_context_3d.cc

Issue 21026005: aura: Remove CreateOffscreenContext from ui::ContextFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: offscreencontext: rebase Created 7 years, 5 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/test/test_web_graphics_context_3d.cc
diff --git a/cc/test/test_web_graphics_context_3d.cc b/cc/test/test_web_graphics_context_3d.cc
index 44d43f949643b3b3427d120ca38481d86a987f8b..00cc93f38b75d72e1473a99f3a12ac628401f729 100644
--- a/cc/test/test_web_graphics_context_3d.cc
+++ b/cc/test/test_web_graphics_context_3d.cc
@@ -54,6 +54,28 @@ TestWebGraphicsContext3D::Namespace::~Namespace() {
shared_namespace_ = NULL;
}
+// static
+scoped_ptr<TestWebGraphicsContext3D> TestWebGraphicsContext3D::Create() {
+ return make_scoped_ptr(new TestWebGraphicsContext3D());
+}
+
+// static
+base::Callback<scoped_ptr<TestWebGraphicsContext3D>()>
+TestWebGraphicsContext3D::CreateFactory() {
+ return base::Bind(&TestWebGraphicsContext3D::Create);
+}
+
+static scoped_ptr<WebKit::WebGraphicsContext3D> CreateBaseFactory() {
+ return scoped_ptr<WebKit::WebGraphicsContext3D>(
+ TestWebGraphicsContext3D::Create());
+}
+
+// static
+base::Callback<scoped_ptr<WebKit::WebGraphicsContext3D>()>
+TestWebGraphicsContext3D::CreateBaseFactory() {
+ return base::Bind(&cc::CreateBaseFactory);
+}
+
TestWebGraphicsContext3D::TestWebGraphicsContext3D()
: FakeWebGraphicsContext3D(),
context_id_(s_context_id++),

Powered by Google App Engine
This is Rietveld 408576698