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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/cancelable_callback.h" 9 #include "base/cancelable_callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 198
199 // The number of SwapBuffer calls that have not returned and ACK'd from 199 // The number of SwapBuffer calls that have not returned and ACK'd from
200 // the GPU thread. 200 // the GPU thread.
201 unsigned int pending_swapbuffers_; 201 unsigned int pending_swapbuffers_;
202 202
203 size_t num_successive_context_creation_failures_; 203 size_t num_successive_context_creation_failures_;
204 204
205 base::TimeDelta vsync_period_; 205 base::TimeDelta vsync_period_;
206 base::TimeTicks last_vsync_; 206 base::TimeTicks last_vsync_;
207 207
208 base::OneShotTimer<CompositorImpl> establish_gpu_channel_timeout_; 208 base::OneShotTimer establish_gpu_channel_timeout_;
209 209
210 // Whether there is an OutputSurface request pending from the current 210 // Whether there is an OutputSurface request pending from the current
211 // |host_|. Becomes |true| if RequestNewOutputSurface is called, and |false| 211 // |host_|. Becomes |true| if RequestNewOutputSurface is called, and |false|
212 // if |host_| is deleted or we succeed in creating *and* initializing an 212 // if |host_| is deleted or we succeed in creating *and* initializing an
213 // OutputSurface (which is essentially the contract with cc). 213 // OutputSurface (which is essentially the contract with cc).
214 bool output_surface_request_pending_; 214 bool output_surface_request_pending_;
215 215
216 base::ObserverList<VSyncObserver, true> observer_list_; 216 base::ObserverList<VSyncObserver, true> observer_list_;
217 217
218 base::WeakPtrFactory<CompositorImpl> weak_factory_; 218 base::WeakPtrFactory<CompositorImpl> weak_factory_;
219 219
220 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 220 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
221 }; 221 };
222 222
223 } // namespace content 223 } // namespace content
224 224
225 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 225 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/power_profiler/power_profiler_service.h ('k') | content/browser/renderer_host/input/gesture_event_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698