| 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 "gpu/command_buffer/client/gles2_interface.h" | 9 #include "gpu/command_buffer/client/gles2_interface.h" |
| 10 #include "ui/compositor/compositor.h" | 10 #include "ui/compositor/compositor.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 GLHelper* NoTransportImageTransportFactory::GetGLHelper() { | 77 GLHelper* NoTransportImageTransportFactory::GetGLHelper() { |
| 78 if (!gl_helper_) { | 78 if (!gl_helper_) { |
| 79 context_provider_ = context_factory_->SharedMainThreadContextProvider(); | 79 context_provider_ = context_factory_->SharedMainThreadContextProvider(); |
| 80 gl_helper_.reset(new GLHelper(context_provider_->ContextGL(), | 80 gl_helper_.reset(new GLHelper(context_provider_->ContextGL(), |
| 81 context_provider_->ContextSupport())); | 81 context_provider_->ContextSupport())); |
| 82 } | 82 } |
| 83 return gl_helper_.get(); | 83 return gl_helper_.get(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 uint32 NoTransportImageTransportFactory::InsertSyncPoint() { return 0; } | |
| 87 | |
| 88 void NoTransportImageTransportFactory::WaitSyncPoint(uint32 sync_point) {} | |
| 89 | |
| 90 // We don't generate lost context events, so we don't need to keep track of | 86 // We don't generate lost context events, so we don't need to keep track of |
| 91 // observers | 87 // observers |
| 92 void NoTransportImageTransportFactory::AddObserver( | 88 void NoTransportImageTransportFactory::AddObserver( |
| 93 ImageTransportFactoryObserver* observer) {} | 89 ImageTransportFactoryObserver* observer) {} |
| 94 | 90 |
| 95 void NoTransportImageTransportFactory::RemoveObserver( | 91 void NoTransportImageTransportFactory::RemoveObserver( |
| 96 ImageTransportFactoryObserver* observer) {} | 92 ImageTransportFactoryObserver* observer) {} |
| 97 | 93 |
| 98 } // namespace content | 94 } // namespace content |
| OLD | NEW |