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

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

Issue 9567026: Avoid sending duplicate flushes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMAND_BUFFER_PROXY_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_
6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 State last_state_; 141 State last_state_;
142 142
143 // The shared memory area used to update state. 143 // The shared memory area used to update state.
144 gpu::CommandBufferSharedState* shared_state_; 144 gpu::CommandBufferSharedState* shared_state_;
145 145
146 // |*this| is owned by |*channel_| and so is always outlived by it, so using a 146 // |*this| is owned by |*channel_| and so is always outlived by it, so using a
147 // raw pointer is ok. 147 // raw pointer is ok.
148 GpuChannelHost* channel_; 148 GpuChannelHost* channel_;
149 int route_id_; 149 int route_id_;
150 unsigned int flush_count_; 150 unsigned int flush_count_;
151 int32 last_put_offset_;
151 152
152 // Tasks to be invoked in echo responses. 153 // Tasks to be invoked in echo responses.
153 std::queue<base::Closure> echo_tasks_; 154 std::queue<base::Closure> echo_tasks_;
154 155
155 base::Closure notify_repaint_task_; 156 base::Closure notify_repaint_task_;
156 157
157 base::Closure channel_error_callback_; 158 base::Closure channel_error_callback_;
158 159
159 base::Callback<void(const GpuMemoryAllocation&)> 160 base::Callback<void(const GpuMemoryAllocation&)>
160 memory_allocation_changed_callback_; 161 memory_allocation_changed_callback_;
161 162
162 GpuConsoleMessageCallback console_message_callback_; 163 GpuConsoleMessageCallback console_message_callback_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy); 165 DISALLOW_COPY_AND_ASSIGN(CommandBufferProxy);
165 }; 166 };
166 167
167 #endif // ENABLE_GPU 168 #endif // ENABLE_GPU
168 169
169 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_ 170 #endif // CONTENT_COMMON_GPU_CLIENT_COMMAND_BUFFER_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/client/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698