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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 8344021: Use WebCompositor only when --enable-threaded-compositing. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Dont create thread Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 #endif 127 #endif
128 128
129 // These methods modify how the next message is sent. Normally, when sending 129 // These methods modify how the next message is sent. Normally, when sending
130 // a synchronous message that runs a nested message loop, we need to suspend 130 // a synchronous message that runs a nested message loop, we need to suspend
131 // callbacks into WebKit. This involves disabling timers and deferring 131 // callbacks into WebKit. This involves disabling timers and deferring
132 // resource loads. However, there are exceptions when we need to customize 132 // resource loads. However, there are exceptions when we need to customize
133 // the behavior. 133 // the behavior.
134 void DoNotSuspendWebKitSharedTimer(); 134 void DoNotSuspendWebKitSharedTimer();
135 void DoNotNotifyWebKitOfModalLoop(); 135 void DoNotNotifyWebKitOfModalLoop();
136 136
137 // Will be NULL if threaded compositing has not been enabled.
137 CompositorThread* compositor_thread() const { 138 CompositorThread* compositor_thread() const {
138 return compositor_thread_.get(); 139 return compositor_thread_.get();
139 } 140 }
140 141
141 AppCacheDispatcher* appcache_dispatcher() const { 142 AppCacheDispatcher* appcache_dispatcher() const {
142 return appcache_dispatcher_.get(); 143 return appcache_dispatcher_.get();
143 } 144 }
144 145
145 IndexedDBDispatcher* indexed_db_dispatcher() const { 146 IndexedDBDispatcher* indexed_db_dispatcher() const {
146 return indexed_db_dispatcher_.get(); 147 return indexed_db_dispatcher_.get();
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 std::set<std::string> v8_extensions_; 238 std::set<std::string> v8_extensions_;
238 239
239 scoped_ptr<CompositorThread> compositor_thread_; 240 scoped_ptr<CompositorThread> compositor_thread_;
240 241
241 ObserverList<content::RenderProcessObserver> observers_; 242 ObserverList<content::RenderProcessObserver> observers_;
242 243
243 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 244 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
244 }; 245 };
245 246
246 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 247 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_thread_impl.cc » ('j') | content/renderer/render_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698