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

Side by Side Diff: ui/ozone/demo/software_renderer.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 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 #ifndef UI_OZONE_DEMO_SOFTWARE_RENDERER_H_ 5 #ifndef UI_OZONE_DEMO_SOFTWARE_RENDERER_H_
6 #define UI_OZONE_DEMO_SOFTWARE_RENDERER_H_ 6 #define UI_OZONE_DEMO_SOFTWARE_RENDERER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 20 matching lines...) Expand all
31 void RenderFrame(); 31 void RenderFrame();
32 32
33 void UpdateVSyncParameters(const base::TimeTicks timebase, 33 void UpdateVSyncParameters(const base::TimeTicks timebase,
34 const base::TimeDelta interval); 34 const base::TimeDelta interval);
35 35
36 scoped_ptr<SurfaceOzoneCanvas> software_surface_; 36 scoped_ptr<SurfaceOzoneCanvas> software_surface_;
37 37
38 scoped_ptr<gfx::VSyncProvider> vsync_provider_; 38 scoped_ptr<gfx::VSyncProvider> vsync_provider_;
39 39
40 // Timer for animation. 40 // Timer for animation.
41 base::RepeatingTimer<SoftwareRenderer> timer_; 41 base::RepeatingTimer timer_;
42 42
43 base::TimeDelta vsync_period_; 43 base::TimeDelta vsync_period_;
44 44
45 base::WeakPtrFactory<SoftwareRenderer> weak_ptr_factory_; 45 base::WeakPtrFactory<SoftwareRenderer> weak_ptr_factory_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); 47 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer);
48 }; 48 };
49 49
50 } // namespace ui 50 } // namespace ui
51 51
52 #endif // UI_OZONE_DEMO_SOFTWARE_RENDERER_H_ 52 #endif // UI_OZONE_DEMO_SOFTWARE_RENDERER_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_popup_collection.cc ('k') | ui/ozone/platform/drm/gpu/drm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698