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

Side by Side Diff: content/browser/aura/no_transport_image_transport_factory.cc

Issue 45963003: Move test-only ContextFactory implementations out of production targets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad ui/base changes Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/aura/no_transport_image_transport_factory.h" 5 #include "content/browser/aura/no_transport_image_transport_factory.h"
6 6
7 #include "cc/output/context_provider.h" 7 #include "cc/output/context_provider.h"
8 #include "content/common/gpu/client/gl_helper.h" 8 #include "content/common/gpu/client/gl_helper.h"
9 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 9 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
10 #include "ui/compositor/compositor.h" 10 #include "ui/compositor/compositor.h"
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 38
39 scoped_refptr<cc::ContextProvider> context_provider_; 39 scoped_refptr<cc::ContextProvider> context_provider_;
40 unsigned texture_; 40 unsigned texture_;
41 DISALLOW_COPY_AND_ASSIGN(FakeTexture); 41 DISALLOW_COPY_AND_ASSIGN(FakeTexture);
42 }; 42 };
43 43
44 } // anonymous namespace 44 } // anonymous namespace
45 45
46 NoTransportImageTransportFactory::NoTransportImageTransportFactory( 46 NoTransportImageTransportFactory::NoTransportImageTransportFactory(
47 ui::ContextFactory* context_factory) 47 scoped_ptr<ui::ContextFactory> context_factory)
48 : context_factory_(context_factory) {} 48 : context_factory_(context_factory.Pass()) {}
49 49
50 NoTransportImageTransportFactory::~NoTransportImageTransportFactory() {} 50 NoTransportImageTransportFactory::~NoTransportImageTransportFactory() {}
51 51
52 ui::ContextFactory* NoTransportImageTransportFactory::AsContextFactory() { 52 ui::ContextFactory* NoTransportImageTransportFactory::AsContextFactory() {
53 return context_factory_.get(); 53 return context_factory_.get();
54 } 54 }
55 55
56 gfx::GLSurfaceHandle 56 gfx::GLSurfaceHandle
57 NoTransportImageTransportFactory::CreateSharedSurfaceHandle() { 57 NoTransportImageTransportFactory::CreateSharedSurfaceHandle() {
58 return gfx::GLSurfaceHandle(); 58 return gfx::GLSurfaceHandle();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 // We don't generate lost context events, so we don't need to keep track of 91 // We don't generate lost context events, so we don't need to keep track of
92 // observers 92 // observers
93 void NoTransportImageTransportFactory::AddObserver( 93 void NoTransportImageTransportFactory::AddObserver(
94 ImageTransportFactoryObserver* observer) {} 94 ImageTransportFactoryObserver* observer) {}
95 95
96 void NoTransportImageTransportFactory::RemoveObserver( 96 void NoTransportImageTransportFactory::RemoveObserver(
97 ImageTransportFactoryObserver* observer) {} 97 ImageTransportFactoryObserver* observer) {}
98 98
99 } // namespace content 99 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698