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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.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/gfx/gl/gl_surface.h" | 13 #include "ui/gl/gl_surface.h" |
14 | 14 |
15 class GpuChannelManager; | 15 class GpuChannelManager; |
16 | 16 |
17 class TextureImageTransportSurface : | 17 class TextureImageTransportSurface : |
18 public ImageTransportSurface, | 18 public ImageTransportSurface, |
19 public GpuCommandBufferStub::DestructionObserver, | 19 public GpuCommandBufferStub::DestructionObserver, |
20 public gfx::GLSurface { | 20 public gfx::GLSurface { |
21 public: | 21 public: |
22 TextureImageTransportSurface(GpuChannelManager* manager, | 22 TextureImageTransportSurface(GpuChannelManager* manager, |
23 GpuCommandBufferStub* stub, | 23 GpuCommandBufferStub* stub, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Whether or not the command buffer stub has been destroyed. | 93 // Whether or not the command buffer stub has been destroyed. |
94 bool stub_destroyed_; | 94 bool stub_destroyed_; |
95 | 95 |
96 scoped_ptr<ImageTransportHelper> helper_; | 96 scoped_ptr<ImageTransportHelper> helper_; |
97 GpuCommandBufferStub* parent_stub_; | 97 GpuCommandBufferStub* parent_stub_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); | 99 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
100 }; | 100 }; |
101 | 101 |
102 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 102 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
OLD | NEW |