| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 scoped_refptr<ui::Texture> NoTransportImageTransportFactory::CreateOwnedTexture( | 68 scoped_refptr<ui::Texture> NoTransportImageTransportFactory::CreateOwnedTexture( |
| 69 const gfx::Size& size, | 69 const gfx::Size& size, |
| 70 float device_scale_factor, | 70 float device_scale_factor, |
| 71 unsigned int texture_id) { | 71 unsigned int texture_id) { |
| 72 return NULL; | 72 return NULL; |
| 73 } | 73 } |
| 74 | 74 |
| 75 GLHelper* NoTransportImageTransportFactory::GetGLHelper() { | 75 GLHelper* NoTransportImageTransportFactory::GetGLHelper() { |
| 76 if (!gl_helper_) { | 76 if (!gl_helper_) { |
| 77 context_provider_ = context_factory_->SharedMainThreadContextProvider(); | 77 context_provider_ = context_factory_->SharedMainThreadContextProvider(); |
| 78 gl_helper_.reset(new GLHelper(context_provider_->Context3d(), | 78 gl_helper_.reset(new GLHelper(context_provider_->ContextGL(), |
| 79 context_provider_->ContextSupport())); | 79 context_provider_->ContextSupport())); |
| 80 } | 80 } |
| 81 return gl_helper_.get(); | 81 return gl_helper_.get(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 uint32 NoTransportImageTransportFactory::InsertSyncPoint() { return 0; } | 84 uint32 NoTransportImageTransportFactory::InsertSyncPoint() { return 0; } |
| 85 | 85 |
| 86 void NoTransportImageTransportFactory::WaitSyncPoint(uint32 sync_point) {} | 86 void NoTransportImageTransportFactory::WaitSyncPoint(uint32 sync_point) {} |
| 87 | 87 |
| 88 // We don't generate lost context events, so we don't need to keep track of | 88 // We don't generate lost context events, so we don't need to keep track of |
| 89 // observers | 89 // observers |
| 90 void NoTransportImageTransportFactory::AddObserver( | 90 void NoTransportImageTransportFactory::AddObserver( |
| 91 ImageTransportFactoryObserver* observer) {} | 91 ImageTransportFactoryObserver* observer) {} |
| 92 | 92 |
| 93 void NoTransportImageTransportFactory::RemoveObserver( | 93 void NoTransportImageTransportFactory::RemoveObserver( |
| 94 ImageTransportFactoryObserver* observer) {} | 94 ImageTransportFactoryObserver* observer) {} |
| 95 | 95 |
| 96 } // namespace content | 96 } // namespace content |
| OLD | NEW |