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

Side by Side Diff: content/common/gpu/client/gpu_channel_host.h

Issue 1489573003: Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Return False on invalid stream id Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // routes. Combines multiple OrderingBarriers into a single AsyncFlush. 109 // routes. Combines multiple OrderingBarriers into a single AsyncFlush.
110 // Returns the flush ID for the stream or 0 if put offset was not changed. 110 // Returns the flush ID for the stream or 0 if put offset was not changed.
111 uint32_t OrderingBarrier(int32 route_id, 111 uint32_t OrderingBarrier(int32 route_id,
112 int32 stream_id, 112 int32 stream_id,
113 int32 put_offset, 113 int32 put_offset,
114 uint32 flush_count, 114 uint32 flush_count,
115 const std::vector<ui::LatencyInfo>& latency_info, 115 const std::vector<ui::LatencyInfo>& latency_info,
116 bool put_offset_changed, 116 bool put_offset_changed,
117 bool do_flush); 117 bool do_flush);
118 118
119 void FlushPendingStream(int32 stream_id);
120
119 // Create and connect to a command buffer in the GPU process. 121 // Create and connect to a command buffer in the GPU process.
120 scoped_ptr<CommandBufferProxyImpl> CreateViewCommandBuffer( 122 scoped_ptr<CommandBufferProxyImpl> CreateViewCommandBuffer(
121 int32 surface_id, 123 int32 surface_id,
122 CommandBufferProxyImpl* share_group, 124 CommandBufferProxyImpl* share_group,
123 int32 stream_id, 125 int32 stream_id,
124 GpuStreamPriority stream_priority, 126 GpuStreamPriority stream_priority,
125 const std::vector<int32>& attribs, 127 const std::vector<int32>& attribs,
126 const GURL& active_url, 128 const GURL& active_url,
127 gfx::GpuPreference gpu_preference); 129 gfx::GpuPreference gpu_preference);
128 130
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 mutable base::Lock context_lock_; 305 mutable base::Lock context_lock_;
304 scoped_ptr<IPC::SyncChannel> channel_; 306 scoped_ptr<IPC::SyncChannel> channel_;
305 base::hash_map<int32, StreamFlushInfo> stream_flush_info_; 307 base::hash_map<int32, StreamFlushInfo> stream_flush_info_;
306 308
307 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost); 309 DISALLOW_COPY_AND_ASSIGN(GpuChannelHost);
308 }; 310 };
309 311
310 } // namespace content 312 } // namespace content
311 313
312 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_ 314 #endif // CONTENT_COMMON_GPU_CLIENT_GPU_CHANNEL_HOST_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/client/gpu_channel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698