OLD | NEW |
---|---|
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 UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ | 5 #ifndef UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ |
6 #define UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ | 6 #define UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ |
7 | 7 |
8 #include <d3d9.h> | 8 #include <d3d9.h> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 // These member functions are called on the PresentThread with which the | 63 // These member functions are called on the PresentThread with which the |
64 // presenter has affinity. | 64 // presenter has affinity. |
65 void DoPresentAndAcknowledge( | 65 void DoPresentAndAcknowledge( |
66 const gfx::Size& size, | 66 const gfx::Size& size, |
67 int64 surface_handle, | 67 int64 surface_handle, |
68 const base::Callback<void(bool)>& completion_task); | 68 const base::Callback<void(bool)>& completion_task); |
69 void DoSuspend(); | 69 void DoSuspend(); |
70 void DoPresent(HDC dc, bool* presented); | 70 void DoPresent(HDC dc, bool* presented); |
71 bool DoRealPresent(HDC dc); | 71 bool DoRealPresent(HDC dc); |
72 void DoReleaseSurface(); | 72 void DoReleaseSurface(); |
73 void GetPresentationStats(base::TimeTicks *timebase, | |
jbates
2012/07/28 01:35:30
comments + n/d abbrev.
| |
74 uint32 *interval_n, | |
75 uint32 *interval_d); | |
73 | 76 |
74 // The thread with which this presenter has affinity. | 77 // The thread with which this presenter has affinity. |
75 PresentThread* const present_thread_; | 78 PresentThread* const present_thread_; |
76 | 79 |
77 // The window that is presented to. | 80 // The window that is presented to. |
78 gfx::NativeWindow window_; | 81 gfx::NativeWindow window_; |
79 | 82 |
80 // The lock is taken while any thread is calling the object, except those that | 83 // The lock is taken while any thread is calling the object, except those that |
81 // simply post from the main thread to the present thread via the immutable | 84 // simply post from the main thread to the present thread via the immutable |
82 // present_thread_ member. | 85 // present_thread_ member. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
128 | 131 |
129 // Indicates that the surface has become invisible. | 132 // Indicates that the surface has become invisible. |
130 void WasHidden(); | 133 void WasHidden(); |
131 | 134 |
132 private: | 135 private: |
133 const scoped_refptr<AcceleratedPresenter> presenter_; | 136 const scoped_refptr<AcceleratedPresenter> presenter_; |
134 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); | 137 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); |
135 }; | 138 }; |
136 | 139 |
137 #endif // UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ | 140 #endif // UI_SURFACE_ACCELERATED_SURFACE_WIN_H_ |
OLD | NEW |