| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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/android/in_process/synchronous_compositor_factory_impl
.h" | 5 #include "content/browser/android/in_process/synchronous_compositor_factory_impl
.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
| 10 #include "content/browser/android/in_process/context_provider_in_process.h" | 10 #include "content/browser/android/in_process/context_provider_in_process.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 observer_list_, | 108 observer_list_, |
| 109 ResetStreamTextureProxy()); | 109 ResetStreamTextureProxy()); |
| 110 } | 110 } |
| 111 | 111 |
| 112 private: | 112 private: |
| 113 friend class base::RefCountedThreadSafe<VideoContextProvider>; | 113 friend class base::RefCountedThreadSafe<VideoContextProvider>; |
| 114 ~VideoContextProvider() override {} | 114 ~VideoContextProvider() override {} |
| 115 | 115 |
| 116 scoped_refptr<cc::ContextProvider> context_provider_; | 116 scoped_refptr<cc::ContextProvider> context_provider_; |
| 117 gpu::GLInProcessContext* gl_in_process_context_; | 117 gpu::GLInProcessContext* gl_in_process_context_; |
| 118 ObserverList<StreamTextureFactoryContextObserver> observer_list_; | 118 base::ObserverList<StreamTextureFactoryContextObserver> observer_list_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(VideoContextProvider); | 120 DISALLOW_COPY_AND_ASSIGN(VideoContextProvider); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 | 123 |
| 124 SynchronousCompositorFactoryImpl::SynchronousCompositorFactoryImpl() | 124 SynchronousCompositorFactoryImpl::SynchronousCompositorFactoryImpl() |
| 125 : record_full_layer_(true), | 125 : record_full_layer_(true), |
| 126 num_hardware_compositors_(0) { | 126 num_hardware_compositors_(0) { |
| 127 SynchronousCompositorFactory::SetInstance(this); | 127 SynchronousCompositorFactory::SetInstance(this); |
| 128 } | 128 } |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 DCHECK(!service_.get()); | 274 DCHECK(!service_.get()); |
| 275 service_ = service; | 275 service_ = service; |
| 276 } | 276 } |
| 277 | 277 |
| 278 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( | 278 void SynchronousCompositorFactoryImpl::SetRecordFullDocument( |
| 279 bool record_full_document) { | 279 bool record_full_document) { |
| 280 record_full_layer_ = record_full_document; | 280 record_full_layer_ = record_full_document; |
| 281 } | 281 } |
| 282 | 282 |
| 283 } // namespace content | 283 } // namespace content |
| OLD | NEW |