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

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

Issue 1615253006: Removed last references to old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed references in TestContextSupport Created 4 years, 11 months 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_GPU_CONTROL_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Destroy an image. The ID must be positive. 48 // Destroy an image. The ID must be positive.
49 virtual void DestroyImage(int32_t id) = 0; 49 virtual void DestroyImage(int32_t id) = 0;
50 50
51 // Create a gpu memory buffer backed image with the given dimensions and 51 // Create a gpu memory buffer backed image with the given dimensions and
52 // format for |usage|. Returns its ID or -1 on error. 52 // format for |usage|. Returns its ID or -1 on error.
53 virtual int32_t CreateGpuMemoryBufferImage(size_t width, 53 virtual int32_t CreateGpuMemoryBufferImage(size_t width,
54 size_t height, 54 size_t height,
55 unsigned internalformat, 55 unsigned internalformat,
56 unsigned usage) = 0; 56 unsigned usage) = 0;
57 57
58 // Inserts a sync point, returning its ID. Sync point IDs are global and can
59 // be used for cross-context synchronization.
60 virtual uint32_t InsertSyncPoint() = 0;
61
62 // Inserts a future sync point, returning its ID. Sync point IDs are global
63 // and can be used for cross-context synchronization. The sync point won't be
64 // retired immediately.
65 virtual uint32_t InsertFutureSyncPoint() = 0;
66
67 // Retires a future sync point. This will signal contexts that are waiting
68 // on it to start executing.
69 virtual void RetireSyncPoint(uint32_t sync_point) = 0;
70
71 // Runs |callback| when a sync point is reached.
72 virtual void SignalSyncPoint(uint32_t sync_point,
73 const base::Closure& callback) = 0;
74
75 // Runs |callback| when a query created via glCreateQueryEXT() has cleared 58 // Runs |callback| when a query created via glCreateQueryEXT() has cleared
76 // passed the glEndQueryEXT() point. 59 // passed the glEndQueryEXT() point.
77 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0; 60 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0;
78 61
79 // Sets a lock this will be held on every callback from the GPU 62 // Sets a lock this will be held on every callback from the GPU
80 // implementation. This lock must be set and must be held on every call into 63 // implementation. This lock must be set and must be held on every call into
81 // the GPU implementation if it is to be used from multiple threads. This 64 // the GPU implementation if it is to be used from multiple threads. This
82 // may not be supported with all implementations. 65 // may not be supported with all implementations.
83 virtual void SetLock(base::Lock*) = 0; 66 virtual void SetLock(base::Lock*) = 0;
84 67
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // be enqueued first so does not need to be flushed. 108 // be enqueued first so does not need to be flushed.
126 virtual bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) = 0; 109 virtual bool CanWaitUnverifiedSyncToken(const SyncToken* sync_token) = 0;
127 110
128 private: 111 private:
129 DISALLOW_COPY_AND_ASSIGN(GpuControl); 112 DISALLOW_COPY_AND_ASSIGN(GpuControl);
130 }; 113 };
131 114
132 } // namespace gpu 115 } // namespace gpu
133 116
134 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ 117 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698