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

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

Issue 7979031: Code cleanup: rename DisallowedExtensions to DisallowedFeature. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 25 matching lines...) Expand all
36 class GpuCommandBufferStub 36 class GpuCommandBufferStub
37 : public IPC::Channel::Listener, 37 : public IPC::Channel::Listener,
38 public IPC::Message::Sender, 38 public IPC::Message::Sender,
39 public base::SupportsWeakPtr<GpuCommandBufferStub> { 39 public base::SupportsWeakPtr<GpuCommandBufferStub> {
40 public: 40 public:
41 GpuCommandBufferStub( 41 GpuCommandBufferStub(
42 GpuChannel* channel, 42 GpuChannel* channel,
43 GpuCommandBufferStub* share_group, 43 GpuCommandBufferStub* share_group,
44 gfx::PluginWindowHandle handle, 44 gfx::PluginWindowHandle handle,
45 const gfx::Size& size, 45 const gfx::Size& size,
46 const gpu::gles2::DisallowedExtensions& disallowed_extensions, 46 const gpu::gles2::DisallowedFeatures& disallowed_features,
47 const std::string& allowed_extensions, 47 const std::string& allowed_extensions,
48 const std::vector<int32>& attribs, 48 const std::vector<int32>& attribs,
49 int32 route_id, 49 int32 route_id,
50 int32 renderer_id, 50 int32 renderer_id,
51 int32 render_view_id, 51 int32 render_view_id,
52 GpuWatchdog* watchdog, 52 GpuWatchdog* watchdog,
53 bool software); 53 bool software);
54 54
55 virtual ~GpuCommandBufferStub(); 55 virtual ~GpuCommandBufferStub();
56 56
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // The lifetime of objects of this class is managed by a GpuChannel. The 148 // The lifetime of objects of this class is managed by a GpuChannel. The
149 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they 149 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they
150 // are destroyed. So a raw pointer is safe. 150 // are destroyed. So a raw pointer is safe.
151 GpuChannel* channel_; 151 GpuChannel* channel_;
152 152
153 // The group of contexts that share namespaces with this context. 153 // The group of contexts that share namespaces with this context.
154 scoped_refptr<gpu::gles2::ContextGroup> context_group_; 154 scoped_refptr<gpu::gles2::ContextGroup> context_group_;
155 155
156 gfx::PluginWindowHandle handle_; 156 gfx::PluginWindowHandle handle_;
157 gfx::Size initial_size_; 157 gfx::Size initial_size_;
158 gpu::gles2::DisallowedExtensions disallowed_extensions_; 158 gpu::gles2::DisallowedFeatures disallowed_features_;
159 std::string allowed_extensions_; 159 std::string allowed_extensions_;
160 std::vector<int32> requested_attribs_; 160 std::vector<int32> requested_attribs_;
161 int32 route_id_; 161 int32 route_id_;
162 bool software_; 162 bool software_;
163 uint32 last_flush_count_; 163 uint32 last_flush_count_;
164 164
165 // The following two fields are used on Mac OS X to identify the window 165 // The following two fields are used on Mac OS X to identify the window
166 // for the rendering results on the browser side. 166 // for the rendering results on the browser side.
167 int32 renderer_id_; 167 int32 renderer_id_;
168 int32 render_view_id_; 168 int32 render_view_id_;
(...skipping 29 matching lines...) Expand all
198 #endif 198 #endif
199 199
200 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_; 200 ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_;
201 201
202 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 202 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
203 }; 203 };
204 204
205 #endif // defined(ENABLE_GPU) 205 #endif // defined(ENABLE_GPU)
206 206
207 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 207 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.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