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

Side by Side Diff: content/browser/renderer_host/no_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: android unittests build fix 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
danakj 2014/07/10 17:09:15 Think this class could live in content/browser/com
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_NO_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_NO_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/renderer_host/image_transport_factory_android.h"
11
12 namespace cc {
13 class ContextProvider;
14 }
15
16 namespace ui {
17 class ContextFactory;
18 }
19
20 namespace content {
21 class GLHelper;
22
23 // An ImageTransportFactoryAndroid that disables transport. This class is for
24 // unittests.
25 class NoImageTransportFactoryAndroid : public ImageTransportFactoryAndroid {
26 public:
27 NoImageTransportFactoryAndroid();
28 virtual ~NoImageTransportFactoryAndroid();
29 virtual GLHelper* GetGLHelper() OVERRIDE;
30 virtual uint32 GetChannelID() OVERRIDE;
31
32 private:
33 scoped_ptr<ui::ContextFactory> context_factory_;
34 scoped_refptr<cc::ContextProvider> context_provider_;
35 scoped_ptr<GLHelper> gl_helper_;
36
37 DISALLOW_COPY_AND_ASSIGN(NoImageTransportFactoryAndroid);
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_BROWSER_RENDERER_HOST_NO_IMAGE_TRANSPORT_FACTORY_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698