Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_factory_impl.cc

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/wallpaper/wallpaper_resizer.h ('k') | content/browser/appcache/appcache_group.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/wallpaper/wallpaper_resizer.h ('k') | content/browser/appcache/appcache_group.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698