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_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ | 5 #ifndef UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ |
6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ | 6 #define UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <d3d9.h> | 9 #include <d3d9.h> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 // Synchronously present a frame with no acknowledgement. | 85 // Synchronously present a frame with no acknowledgement. |
86 bool Present(gfx::NativeWindow window); | 86 bool Present(gfx::NativeWindow window); |
87 | 87 |
88 // Temporarily release resources until a new surface is asynchronously | 88 // Temporarily release resources until a new surface is asynchronously |
89 // presented. Present will not be able to represent the last surface after | 89 // presented. Present will not be able to represent the last surface after |
90 // calling this and will return false. | 90 // calling this and will return false. |
91 void Suspend(); | 91 void Suspend(); |
92 | 92 |
93 private: | 93 private: |
94 scoped_refptr<AcceleratedPresenter> presenter_; | 94 // Immutable and accessible on any thread. |
| 95 const scoped_refptr<AcceleratedPresenter> presenter_; |
95 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); | 96 DISALLOW_COPY_AND_ASSIGN(AcceleratedSurface); |
96 }; | 97 }; |
97 | 98 |
98 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ | 99 #endif // UI_GFX_SURFACE_ACCELERATED_SURFACE_WIN_H_ |
OLD | NEW |