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 #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 Loading... |
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_ |
OLD | NEW |