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

Unified Diff: content/browser/compositor/no_transport_image_transport_factory.h

Issue 369923003: NoTransportImageTransportFactory is compiled into only test targets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InitializeForUnitTests get scoped_ptr Created 6 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: content/browser/compositor/no_transport_image_transport_factory.h
diff --git a/content/browser/compositor/no_transport_image_transport_factory.h b/content/browser/compositor/no_transport_image_transport_factory.h
deleted file mode 100644
index fd5f6bf1be565a029ed9116e33b1e65f1d330ba9..0000000000000000000000000000000000000000
--- a/content/browser/compositor/no_transport_image_transport_factory.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2014 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 CONTENT_BROWSER_COMPOSITOR_NO_TRANSPORT_IMAGE_TRANSPORT_FACTORY_H_
-#define CONTENT_BROWSER_COMPOSITOR_NO_TRANSPORT_IMAGE_TRANSPORT_FACTORY_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/observer_list.h"
-#include "content/browser/compositor/image_transport_factory.h"
-
-namespace cc {
-class ContextProvider;
-}
-
-namespace content {
-
-// An ImageTransportFactory that disables transport.
-class NoTransportImageTransportFactory : public ImageTransportFactory {
- public:
- explicit NoTransportImageTransportFactory(
- scoped_ptr<ui::ContextFactory> context_factory);
- virtual ~NoTransportImageTransportFactory();
-
- // ImageTransportFactory implementation.
- virtual ui::ContextFactory* GetContextFactory() OVERRIDE;
- virtual gfx::GLSurfaceHandle GetSharedSurfaceHandle() OVERRIDE;
- virtual GLHelper* GetGLHelper() OVERRIDE;
- virtual void AddObserver(ImageTransportFactoryObserver* observer) OVERRIDE;
- virtual void RemoveObserver(ImageTransportFactoryObserver* observer) OVERRIDE;
-#if defined(OS_MACOSX)
- virtual void OnSurfaceDisplayed(int surface_id) OVERRIDE {}
-#endif
-
- private:
- scoped_ptr<ui::ContextFactory> context_factory_;
- scoped_refptr<cc::ContextProvider> context_provider_;
- scoped_ptr<GLHelper> gl_helper_;
- ObserverList<ImageTransportFactoryObserver> observer_list_;
-
- DISALLOW_COPY_AND_ASSIGN(NoTransportImageTransportFactory);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_COMPOSITOR_NO_TRANSPORT_IMAGE_TRANSPORT_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698