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

Unified Diff: content/test/layouttest_support.cc

Issue 12315103: mac content shell drt: Hook up a dummy image transport (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: jochen Created 7 years, 10 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/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index a0d77b6ecbd0443d02b995e263b07aeb92ec65d2..3b573343a035252fe29f27bebcdd4043cad662f2 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -6,6 +6,7 @@
#include "base/callback.h"
#include "base/lazy_instance.h"
+#include "content/common/gpu/image_transport_surface.h"
#include "content/renderer/devtools/devtools_client.h"
#include "content/renderer/render_view_impl.h"
#include "content/renderer/renderer_webapplicationcachehost_impl.h"
@@ -61,4 +62,10 @@ int GetLocalSessionHistoryLength(RenderView* render_view) {
->GetLocalSessionHistoryLengthForTesting();
}
+void SetAllowOSMesaImageTransportForTesting() {
+#if defined(OS_MACOSX)
+ ImageTransportSurface::SetAllowOSMesaForTesting(true);
+#endif
+}
+
} // namespace content
« content/shell/shell_main_delegate.cc ('K') | « content/shell/shell_main_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698