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

Unified Diff: content/browser/compositor/test/no_transport_image_transport_factory.cc

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/test/no_transport_image_transport_factory.cc
diff --git a/content/browser/compositor/no_transport_image_transport_factory.cc b/content/browser/compositor/test/no_transport_image_transport_factory.cc
similarity index 82%
rename from content/browser/compositor/no_transport_image_transport_factory.cc
rename to content/browser/compositor/test/no_transport_image_transport_factory.cc
index 03289c0f68511a2ca6714e7c0357c362268915f6..e7ba1ff5c51ffa5e60711d038415ff1f16ae25b9 100644
--- a/content/browser/compositor/no_transport_image_transport_factory.cc
+++ b/content/browser/compositor/test/no_transport_image_transport_factory.cc
@@ -2,24 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/compositor/no_transport_image_transport_factory.h"
+#include "content/browser/compositor/test/no_transport_image_transport_factory.h"
#include "cc/output/context_provider.h"
#include "content/common/gpu/client/gl_helper.h"
#include "gpu/command_buffer/client/gles2_interface.h"
#include "ui/compositor/compositor.h"
+#include "ui/compositor/test/in_process_context_factory.h"
namespace content {
-NoTransportImageTransportFactory::NoTransportImageTransportFactory(
- scoped_ptr<ui::ContextFactory> context_factory)
- : context_factory_(context_factory.Pass()) {}
+NoTransportImageTransportFactory::NoTransportImageTransportFactory()
+ : context_factory_(new ui::InProcessContextFactory) {
+}
NoTransportImageTransportFactory::~NoTransportImageTransportFactory() {
scoped_ptr<GLHelper> lost_gl_helper = gl_helper_.Pass();
- FOR_EACH_OBSERVER(ImageTransportFactoryObserver,
- observer_list_,
- OnLostResources());
+ FOR_EACH_OBSERVER(
+ ImageTransportFactoryObserver, observer_list_, OnLostResources());
}
ui::ContextFactory* NoTransportImageTransportFactory::GetContextFactory() {

Powered by Google App Engine
This is Rietveld 408576698