OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "ui/gfx/geometry/rect.h" |
9 #include "ui/gfx/overlay_transform.h" | 10 #include "ui/gfx/overlay_transform.h" |
10 #include "ui/gfx/rect.h" | |
11 | 11 |
12 namespace gpu { | 12 namespace gpu { |
13 | 13 |
14 class ContextSupport { | 14 class ContextSupport { |
15 public: | 15 public: |
16 // Runs |callback| when a sync point is reached. | 16 // Runs |callback| when a sync point is reached. |
17 virtual void SignalSyncPoint(uint32 sync_point, | 17 virtual void SignalSyncPoint(uint32 sync_point, |
18 const base::Closure& callback) = 0; | 18 const base::Closure& callback) = 0; |
19 | 19 |
20 // Runs |callback| when a query created via glCreateQueryEXT() has cleared | 20 // Runs |callback| when a query created via glCreateQueryEXT() has cleared |
(...skipping 20 matching lines...) Expand all Loading... |
41 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0; | 41 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0; |
42 | 42 |
43 protected: | 43 protected: |
44 ContextSupport() {} | 44 ContextSupport() {} |
45 virtual ~ContextSupport() {} | 45 virtual ~ContextSupport() {} |
46 }; | 46 }; |
47 | 47 |
48 } | 48 } |
49 | 49 |
50 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 50 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
OLD | NEW |