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

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

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 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 | 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 15 matching lines...) Expand all
26 #include "ui/gfx/size.h" 26 #include "ui/gfx/size.h"
27 #include "ui/gl/gl_context.h" 27 #include "ui/gl/gl_context.h"
28 #include "ui/gl/gl_surface.h" 28 #include "ui/gl/gl_surface.h"
29 #include "ui/gl/gpu_preference.h" 29 #include "ui/gl/gpu_preference.h"
30 #include "ui/surface/transport_dib.h" 30 #include "ui/surface/transport_dib.h"
31 31
32 #if defined(OS_MACOSX) 32 #if defined(OS_MACOSX)
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;
37 struct GpuMemoryAllocation;
38 class GpuVideoDecodeAccelerator;
39 class GpuWatchdog;
40
41 namespace gpu { 36 namespace gpu {
42 namespace gles2 { 37 namespace gles2 {
43 class ImageManager; 38 class ImageManager;
44 class MailboxManager; 39 class MailboxManager;
45 } 40 }
46 } 41 }
47 42
43 namespace content {
44
45 class GpuChannel;
46 class GpuVideoDecodeAccelerator;
47 class GpuWatchdog;
48 struct GpuMemoryAllocation;
49
48 // This Base class is used to expose methods of GpuCommandBufferStub used for 50 // This Base class is used to expose methods of GpuCommandBufferStub used for
49 // testability. 51 // testability.
50 class CONTENT_EXPORT GpuCommandBufferStubBase { 52 class CONTENT_EXPORT GpuCommandBufferStubBase {
51 public: 53 public:
52 struct CONTENT_EXPORT MemoryManagerState { 54 struct CONTENT_EXPORT MemoryManagerState {
53 // Offscreen commandbuffers will not have a surface. 55 // Offscreen commandbuffers will not have a surface.
54 bool has_surface; 56 bool has_surface;
55 bool visible; 57 bool visible;
56 bool client_has_memory_allocation_changed_callback; 58 bool client_has_memory_allocation_changed_callback;
57 // The last used time is determined by the last time that visibility 59 // The last used time is determined by the last time that visibility
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 bool delayed_work_scheduled_; 293 bool delayed_work_scheduled_;
292 294
293 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_; 295 scoped_refptr<gpu::RefCountedCounter> preempt_by_counter_;
294 296
295 GURL active_url_; 297 GURL active_url_;
296 size_t active_url_hash_; 298 size_t active_url_hash_;
297 299
298 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 300 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
299 }; 301 };
300 302
303 } // namespace content
304
301 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 305 #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