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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // may not be supported with all implementations. 62 // may not be supported with all implementations.
63 virtual void SetLock(base::Lock*) = 0; 63 virtual void SetLock(base::Lock*) = 0;
64 64
65 // When this function returns it ensures all previously flushed work is 65 // When this function returns it ensures all previously flushed work is
66 // visible by the service. This command does this by sending a synchronous 66 // visible by the service. This command does this by sending a synchronous
67 // IPC. Note just because the work is visible to the server does not mean 67 // IPC. Note just because the work is visible to the server does not mean
68 // that it has been processed. This is only relevant for out of process 68 // that it has been processed. This is only relevant for out of process
69 // services and will be treated as a NOP for in process command buffers. 69 // services and will be treated as a NOP for in process command buffers.
70 virtual void EnsureWorkVisible() = 0; 70 virtual void EnsureWorkVisible() = 0;
71 71
72 virtual void EnsureWorkVisibleAsync() = 0;
piman 2017/05/09 00:48:38 nit: please provide documentation here. Not too su
sunnyps 2017/05/10 23:15:15 Done.
73
72 // The namespace and command buffer ID forms a unique pair for all existing 74 // The namespace and command buffer ID forms a unique pair for all existing
73 // GpuControl (on client) and matches for the corresponding command buffer 75 // GpuControl (on client) and matches for the corresponding command buffer
74 // (on server) in a single server process. The extra command buffer data can 76 // (on server) in a single server process. The extra command buffer data can
75 // be used for extra identification purposes. One usage is to store some 77 // be used for extra identification purposes. One usage is to store some
76 // extra field to identify unverified sync tokens for the implementation of 78 // extra field to identify unverified sync tokens for the implementation of
77 // the CanWaitUnverifiedSyncToken() function. 79 // the CanWaitUnverifiedSyncToken() function.
78 virtual CommandBufferNamespace GetNamespaceID() const = 0; 80 virtual CommandBufferNamespace GetNamespaceID() const = 0;
79 virtual CommandBufferId GetCommandBufferID() const = 0; 81 virtual CommandBufferId GetCommandBufferID() const = 0;
80 virtual int32_t GetExtraCommandBufferData() const = 0; 82 virtual int32_t GetExtraCommandBufferData() const = 0;
81 83
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void AddLatencyInfo( 126 virtual void AddLatencyInfo(
125 const std::vector<ui::LatencyInfo>& latency_info) = 0; 127 const std::vector<ui::LatencyInfo>& latency_info) = 0;
126 128
127 private: 129 private:
128 DISALLOW_COPY_AND_ASSIGN(GpuControl); 130 DISALLOW_COPY_AND_ASSIGN(GpuControl);
129 }; 131 };
130 132
131 } // namespace gpu 133 } // namespace gpu
132 134
133 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_ 135 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_CONTROL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698