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

Side by Side Diff: content/browser/renderer_host/no_image_transport_factory_android.cc

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.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/renderer_host/no_image_transport_factory_android.h"
6
7 #include "cc/output/context_provider.h"
8 #include "content/common/gpu/client/gl_helper.h"
9 #include "ui/compositor/compositor.h"
10 #include "ui/compositor/test/in_process_context_factory.h"
11
12 namespace content {
13
14 NoImageTransportFactoryAndroid::NoImageTransportFactoryAndroid()
15 : context_factory_(new ui::InProcessContextFactory) {
16 }
17
18 NoImageTransportFactoryAndroid::~NoImageTransportFactoryAndroid() {
19 }
20
21 GLHelper* NoImageTransportFactoryAndroid::GetGLHelper() {
22 if (!gl_helper_) {
23 context_provider_ = context_factory_->SharedMainThreadContextProvider();
24 gl_helper_.reset(new GLHelper(context_provider_->ContextGL(),
25 context_provider_->ContextSupport()));
26 }
27 return gl_helper_.get();
28 }
29
30 uint32 NoImageTransportFactoryAndroid::GetChannelID() {
31 NOTREACHED();
32 return 0;
33 }
34
35 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698