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

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

Issue 10543125: gpu: Add support for GLX_EXT_texture_from_pixmap extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add kGLImplementationMockGL case to gl_image_android.cc. Created 8 years, 2 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
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 22 matching lines...) Expand all
33 #include "ui/surface/accelerated_surface_mac.h" 33 #include "ui/surface/accelerated_surface_mac.h"
34 #endif 34 #endif
35 35
36 class GpuChannel; 36 class GpuChannel;
37 struct GpuMemoryAllocation; 37 struct GpuMemoryAllocation;
38 class GpuVideoDecodeAccelerator; 38 class GpuVideoDecodeAccelerator;
39 class GpuWatchdog; 39 class GpuWatchdog;
40 40
41 namespace gpu { 41 namespace gpu {
42 namespace gles2 { 42 namespace gles2 {
43 class ImageManager;
43 class MailboxManager; 44 class MailboxManager;
44 } 45 }
45 } 46 }
46 47
47 // This Base class is used to expose methods of GpuCommandBufferStub used for 48 // This Base class is used to expose methods of GpuCommandBufferStub used for
48 // testability. 49 // testability.
49 class CONTENT_EXPORT GpuCommandBufferStubBase { 50 class CONTENT_EXPORT GpuCommandBufferStubBase {
50 public: 51 public:
51 struct CONTENT_EXPORT MemoryManagerState { 52 struct CONTENT_EXPORT MemoryManagerState {
52 // Offscreen commandbuffers will not have a surface. 53 // Offscreen commandbuffers will not have a surface.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 protected: 94 protected:
94 virtual ~DestructionObserver() {} 95 virtual ~DestructionObserver() {}
95 }; 96 };
96 97
97 GpuCommandBufferStub( 98 GpuCommandBufferStub(
98 GpuChannel* channel, 99 GpuChannel* channel,
99 GpuCommandBufferStub* share_group, 100 GpuCommandBufferStub* share_group,
100 const gfx::GLSurfaceHandle& handle, 101 const gfx::GLSurfaceHandle& handle,
101 gpu::gles2::MailboxManager* mailbox_manager, 102 gpu::gles2::MailboxManager* mailbox_manager,
103 gpu::gles2::ImageManager* image_manager,
102 const gfx::Size& size, 104 const gfx::Size& size,
103 const gpu::gles2::DisallowedFeatures& disallowed_features, 105 const gpu::gles2::DisallowedFeatures& disallowed_features,
104 const std::string& allowed_extensions, 106 const std::string& allowed_extensions,
105 const std::vector<int32>& attribs, 107 const std::vector<int32>& attribs,
106 gfx::GpuPreference gpu_preference, 108 gfx::GpuPreference gpu_preference,
107 int32 route_id, 109 int32 route_id,
108 int32 surface_id, 110 int32 surface_id,
109 GpuWatchdog* watchdog, 111 GpuWatchdog* watchdog,
110 bool software, 112 bool software,
111 const GURL& active_url); 113 const GURL& active_url);
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 292
291 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; 293 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
292 294
293 GURL active_url_; 295 GURL active_url_;
294 size_t active_url_hash_; 296 size_t active_url_hash_;
295 297
296 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 298 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
297 }; 299 };
298 300
299 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 301 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_manager.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698