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/overlay_transform.h" | 9 #include "ui/gfx/overlay_transform.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 const base::Closure& callback) = 0; | 24 const base::Closure& callback) = 0; |
25 | 25 |
26 // Runs |callback| when a sync token is signalled. | 26 // Runs |callback| when a sync token is signalled. |
27 virtual void SignalSyncToken(const SyncToken& sync_token, | 27 virtual void SignalSyncToken(const SyncToken& sync_token, |
28 const base::Closure& callback) = 0; | 28 const base::Closure& callback) = 0; |
29 | 29 |
30 // Runs |callback| when a query created via glCreateQueryEXT() has cleared | 30 // Runs |callback| when a query created via glCreateQueryEXT() has cleared |
31 // passed the glEndQueryEXT() point. | 31 // passed the glEndQueryEXT() point. |
32 virtual void SignalQuery(uint32 query, const base::Closure& callback) = 0; | 32 virtual void SignalQuery(uint32 query, const base::Closure& callback) = 0; |
33 | 33 |
34 // For onscreen contexts, indicates that the surface visibility has changed. | |
35 // Clients aren't expected to draw to an invisible surface. | |
36 virtual void SetSurfaceVisible(bool visible) = 0; | |
37 | |
38 // Indicates whether the context should aggressively free allocated resources. | 34 // Indicates whether the context should aggressively free allocated resources. |
39 // If set to true, the context will purge all temporary resources when | 35 // If set to true, the context will purge all temporary resources when |
40 // flushed. | 36 // flushed. |
41 virtual void SetAggressivelyFreeResources( | 37 virtual void SetAggressivelyFreeResources( |
42 bool aggressively_free_resources) = 0; | 38 bool aggressively_free_resources) = 0; |
43 | 39 |
44 virtual void Swap() = 0; | 40 virtual void Swap() = 0; |
45 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0; | 41 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0; |
46 | 42 |
47 // Schedule a texture to be presented as an overlay synchronously with the | 43 // Schedule a texture to be presented as an overlay synchronously with the |
(...skipping 13 matching lines...) Expand all Loading... |
61 virtual uint64_t ShareGroupTracingGUID() const = 0; | 57 virtual uint64_t ShareGroupTracingGUID() const = 0; |
62 | 58 |
63 protected: | 59 protected: |
64 ContextSupport() {} | 60 ContextSupport() {} |
65 virtual ~ContextSupport() {} | 61 virtual ~ContextSupport() {} |
66 }; | 62 }; |
67 | 63 |
68 } | 64 } |
69 | 65 |
70 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ | 66 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ |
OLD | NEW |