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

Side by Side Diff: content/common/gpu/texture_image_transport_surface.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_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
11 #include "content/common/gpu/image_transport_surface.h" 11 #include "content/common/gpu/image_transport_surface.h"
12 #include "gpu/command_buffer/service/texture_manager.h" 12 #include "gpu/command_buffer/service/texture_manager.h"
13 #include "ui/gl/gl_surface.h" 13 #include "ui/gl/gl_surface.h"
14 14
15 namespace content {
15 class GpuChannelManager; 16 class GpuChannelManager;
16 17
17 class TextureImageTransportSurface : 18 class TextureImageTransportSurface :
18 public ImageTransportSurface, 19 public ImageTransportSurface,
19 public GpuCommandBufferStub::DestructionObserver, 20 public GpuCommandBufferStub::DestructionObserver,
20 public gfx::GLSurface, 21 public gfx::GLSurface,
21 public base::SupportsWeakPtr<TextureImageTransportSurface> { 22 public base::SupportsWeakPtr<TextureImageTransportSurface> {
22 public: 23 public:
23 TextureImageTransportSurface(GpuChannelManager* manager, 24 TextureImageTransportSurface(GpuChannelManager* manager,
24 GpuCommandBufferStub* stub, 25 GpuCommandBufferStub* stub,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 118
118 // Whether a SwapBuffers is pending. 119 // Whether a SwapBuffers is pending.
119 bool is_swap_buffers_pending_; 120 bool is_swap_buffers_pending_;
120 121
121 // Whether we unscheduled command buffer because of pending SwapBuffers. 122 // Whether we unscheduled command buffer because of pending SwapBuffers.
122 bool did_unschedule_; 123 bool did_unschedule_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 125 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
125 }; 126 };
126 127
128 } // namespace content
129
127 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 130 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/sync_point_manager.cc ('k') | content/common/gpu/texture_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698