| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |