OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |