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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 177953004: Enable SurfaceTexture based zero-copy texture uploading on Android platform Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 (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_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 uint32 width, 192 uint32 width,
193 uint32 height, 193 uint32 height,
194 uint32 internalformat); 194 uint32 internalformat);
195 void OnDestroyGpuMemoryBuffer(int32 id); 195 void OnDestroyGpuMemoryBuffer(int32 id);
196 196
197 void OnCommandProcessed(); 197 void OnCommandProcessed();
198 void OnParseError(); 198 void OnParseError();
199 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info); 199 void OnSetLatencyInfo(const std::vector<ui::LatencyInfo>& latency_info);
200 void OnCreateStreamTexture(uint32 texture_id, int32* stream_id); 200 void OnCreateStreamTexture(uint32 texture_id, int32* stream_id);
201 201
202 void OnCreateSurfaceTexture(uint32 gpu_memory_buffer,
203 uint32* surface_texture_handle,
204 uint32* gpu_texture_id);
205
202 void ReportState(); 206 void ReportState();
203 207
204 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. 208 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
205 void PutChanged(); 209 void PutChanged();
206 210
207 // Poll the command buffer to execute work. 211 // Poll the command buffer to execute work.
208 void PollWork(); 212 void PollWork();
209 213
210 // Whether this command buffer needs to be polled again in the future. 214 // Whether this command buffer needs to be polled again in the future.
211 bool HasMoreWork(); 215 bool HasMoreWork();
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 size_t active_url_hash_; 269 size_t active_url_hash_;
266 270
267 size_t total_gpu_memory_; 271 size_t total_gpu_memory_;
268 272
269 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 273 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
270 }; 274 };
271 275
272 } // namespace content 276 } // namespace content
273 277
274 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 278 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698