Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Side by Side Diff: gpu/command_buffer/client/context_support.h

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "ui/gfx/overlay_transform.h" 11 #include "ui/gfx/overlay_transform.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Rect; 14 class Rect;
15 class RectF; 15 class RectF;
16 } 16 }
17 17
18 namespace gpu { 18 namespace gpu {
19 19
20 struct SyncToken; 20 struct SyncToken;
21 21
22 class ContextSupport { 22 class ContextSupport {
23 public: 23 public:
24 // Runs |callback| when a sync token is signalled. 24 // Runs |callback| when a sync token is signalled.
25 virtual void SignalSyncToken(const SyncToken& sync_token, 25 virtual void SignalSyncToken(const SyncToken& sync_token,
26 const base::Closure& callback) = 0; 26 const base::Closure& callback) = 0;
27 27
28 virtual bool IsFenceSyncReleased(uint64_t release_count) = 0;
29
28 // Runs |callback| when a query created via glCreateQueryEXT() has cleared 30 // Runs |callback| when a query created via glCreateQueryEXT() has cleared
29 // passed the glEndQueryEXT() point. 31 // passed the glEndQueryEXT() point.
30 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0; 32 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0;
31 33
32 // Indicates whether the context should aggressively free allocated resources. 34 // Indicates whether the context should aggressively free allocated resources.
33 // 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
34 // flushed. 36 // flushed.
35 virtual void SetAggressivelyFreeResources( 37 virtual void SetAggressivelyFreeResources(
36 bool aggressively_free_resources) = 0; 38 bool aggressively_free_resources) = 0;
37 39
(...skipping 20 matching lines...) Expand all
58 const base::Callback<void(const char*, int32_t)>& callback) = 0; 60 const base::Callback<void(const char*, int32_t)>& callback) = 0;
59 61
60 protected: 62 protected:
61 ContextSupport() {} 63 ContextSupport() {}
62 virtual ~ContextSupport() {} 64 virtual ~ContextSupport() {}
63 }; 65 };
64 66
65 } 67 }
66 68
67 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 69 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/cmd_buffer_helper.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698