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

Unified Diff: cc/test/fake_graphics_context.h

Issue 11108020: [cc] Change cc_tests.gyp filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 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
« no previous file with comments | « cc/test/compositor_fake_web_graphics_context_3d.h ('k') | cc/test/fake_graphics_context_3d_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_graphics_context.h
diff --git a/cc/test/fake_graphics_context.h b/cc/test/fake_graphics_context.h
index 638cbb270ce9b24689d5095baf174ade4f4d1a13..a592bf0462722ba0a51694c5f2c110b5955a2241 100644
--- a/cc/test/fake_graphics_context.h
+++ b/cc/test/fake_graphics_context.h
@@ -1,3 +1,22 @@
// Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
+#ifndef FakeCCGraphicsContext_h
+#define FakeCCGraphicsContext_h
+
+#include "CCGraphicsContext.h"
+#include "CompositorFakeWebGraphicsContext3D.h"
+#include "FakeWebCompositorOutputSurface.h"
+#include <public/WebCompositorOutputSurface.h>
+
+namespace WebKit {
+
+static inline scoped_ptr<cc::CCGraphicsContext> createFakeCCGraphicsContext()
+{
+ return FakeWebCompositorOutputSurface::create(CompositorFakeWebGraphicsContext3D::create(WebGraphicsContext3D::Attributes())).PassAs<cc::CCGraphicsContext>();
+}
+
+} // namespace WebKit
+
+#endif // FakeCCGraphicsContext_h
« no previous file with comments | « cc/test/compositor_fake_web_graphics_context_3d.h ('k') | cc/test/fake_graphics_context_3d_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698