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

Unified Diff: content/browser/renderer_host/image_transport_factory_android.h

Issue 312803002: Android media: VideoFrame should not store so many sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make content_unittests pass on Android Created 6 years, 6 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/renderer_host/image_transport_factory_android.h
diff --git a/content/browser/renderer_host/image_transport_factory_android.h b/content/browser/renderer_host/image_transport_factory_android.h
index 3be7a678e69821cbf47ddbf72c1cd414feac33e6..78e063ac1c62a0921d43e3977bd49579d9b7c4bd 100644
--- a/content/browser/renderer_host/image_transport_factory_android.h
+++ b/content/browser/renderer_host/image_transport_factory_android.h
@@ -6,12 +6,17 @@
#define CONTENT_BROWSER_RENDERER_HOST_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
#include "ui/gfx/native_widget_types.h"
namespace gfx {
class GLShareGroup;
}
+namespace ui {
+class ContextFactory;
+}
+
namespace gpu {
namespace gles2 {
class GLES2Interface;
@@ -28,10 +33,14 @@ class ImageTransportFactoryAndroidObserver {
virtual void OnLostResources() = 0;
};
-class ImageTransportFactoryAndroid {
+class CONTENT_EXPORT ImageTransportFactoryAndroid {
public:
virtual ~ImageTransportFactoryAndroid();
+ // Initializes the global transport factory for unit tests.
+ static void InitializeForUnitTests(
+ scoped_ptr<ui::ContextFactory> test_factory);
+
static ImageTransportFactoryAndroid* GetInstance();
virtual GLHelper* GetGLHelper() = 0;

Powered by Google App Engine
This is Rietveld 408576698