OLD | NEW |
(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 |
OLD | NEW |