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

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

Issue 619453002: gpu: Remove Echo and SwapCompletion GL interfacess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tits
Patch Set: remove comment Created 6 years, 2 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Runs |callback| when a sync point is reached. 57 // Runs |callback| when a sync point is reached.
58 virtual void SignalSyncPoint(uint32_t sync_point, 58 virtual void SignalSyncPoint(uint32_t sync_point,
59 const base::Closure& callback) = 0; 59 const base::Closure& callback) = 0;
60 60
61 // Runs |callback| when a query created via glCreateQueryEXT() has cleared 61 // Runs |callback| when a query created via glCreateQueryEXT() has cleared
62 // passed the glEndQueryEXT() point. 62 // passed the glEndQueryEXT() point.
63 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0; 63 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0;
64 64
65 virtual void SetSurfaceVisible(bool visible) = 0; 65 virtual void SetSurfaceVisible(bool visible) = 0;
66 66
67 // Invokes the callback once the context has been flushed.
68 virtual void Echo(const base::Closure& callback) = 0;
69
70 // Attaches an external stream to the texture given by |texture_id| and 67 // Attaches an external stream to the texture given by |texture_id| and
71 // returns a stream identifier. 68 // returns a stream identifier.
72 virtual uint32_t CreateStreamTexture(uint32_t texture_id) = 0; 69 virtual uint32_t CreateStreamTexture(uint32_t texture_id) = 0;
73 70
74 private: 71 private:
75 DISALLOW_COPY_AND_ASSIGN(GpuControl); 72 DISALLOW_COPY_AND_ASSIGN(GpuControl);
76 }; 73 };
77 74
78 } // namespace gpu 75 } // namespace gpu
79 76
80 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ 77 #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/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698