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

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

Issue 1417853006: gpu: introduce glSetStreamTextureSizeCHROMIUM(GLuint texture, GLint stream_id, GLsizei width, GLsiz… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview.test failure Created 5 years, 1 month 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 namespace content { 47 namespace content {
48 48
49 class GpuChannel; 49 class GpuChannel;
50 class GpuVideoDecodeAccelerator; 50 class GpuVideoDecodeAccelerator;
51 class GpuVideoEncodeAccelerator; 51 class GpuVideoEncodeAccelerator;
52 class GpuWatchdog; 52 class GpuWatchdog;
53 struct WaitForCommandState; 53 struct WaitForCommandState;
54 54
55 #if defined(OS_ANDROID)
56 class StreamTextureManager;
57 #endif
58
55 class GpuCommandBufferStub 59 class GpuCommandBufferStub
56 : public GpuMemoryManagerClient, 60 : public GpuMemoryManagerClient,
57 public IPC::Listener, 61 public IPC::Listener,
58 public IPC::Sender, 62 public IPC::Sender,
59 public base::SupportsWeakPtr<GpuCommandBufferStub> { 63 public base::SupportsWeakPtr<GpuCommandBufferStub> {
60 public: 64 public:
61 class DestructionObserver { 65 class DestructionObserver {
62 public: 66 public:
63 // Called in Destroy(), before the context/surface are released. 67 // Called in Destroy(), before the context/surface are released.
64 virtual void OnWillDestroyStub() = 0; 68 virtual void OnWillDestroyStub() = 0;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 220
217 void OnCreateImage(int32 id, 221 void OnCreateImage(int32 id,
218 gfx::GpuMemoryBufferHandle handle, 222 gfx::GpuMemoryBufferHandle handle,
219 gfx::Size size, 223 gfx::Size size,
220 gfx::BufferFormat format, 224 gfx::BufferFormat format,
221 uint32 internalformat); 225 uint32 internalformat);
222 void OnDestroyImage(int32 id); 226 void OnDestroyImage(int32 id);
223 void OnCreateStreamTexture(uint32 texture_id, 227 void OnCreateStreamTexture(uint32 texture_id,
224 int32 stream_id, 228 int32 stream_id,
225 bool* succeeded); 229 bool* succeeded);
230 void OnSetStreamTextureSize(uint32 texture_id,
231 int32 stream_id,
232 size_t width,
233 size_t height);
226 234
227 void OnCommandProcessed(); 235 void OnCommandProcessed();
228 void OnParseError(); 236 void OnParseError();
229 void OnSchedulingChanged(bool scheduled); 237 void OnSchedulingChanged(bool scheduled);
230 238
231 void ReportState(); 239 void ReportState();
232 240
233 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. 241 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
234 void PutChanged(); 242 void PutChanged();
235 243
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 306
299 LatencyInfoCallback latency_info_callback_; 307 LatencyInfoCallback latency_info_callback_;
300 308
301 GURL active_url_; 309 GURL active_url_;
302 size_t active_url_hash_; 310 size_t active_url_hash_;
303 311
304 size_t total_gpu_memory_; 312 size_t total_gpu_memory_;
305 scoped_ptr<WaitForCommandState> wait_for_token_; 313 scoped_ptr<WaitForCommandState> wait_for_token_;
306 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 314 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
307 315
316 #if defined(OS_ANDROID)
317 scoped_ptr<StreamTextureManager> stream_texture_manager_;
318 #endif
319
308 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 320 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
309 }; 321 };
310 322
311 } // namespace content 323 } // namespace content
312 324
313 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 325 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698