| 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" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 bool backbuffer_suggested_allocation_; | 103 bool backbuffer_suggested_allocation_; |
| 104 bool frontbuffer_suggested_allocation_; | 104 bool frontbuffer_suggested_allocation_; |
| 105 | 105 |
| 106 bool frontbuffer_is_protected_; | 106 bool frontbuffer_is_protected_; |
| 107 uint32 protection_state_id_; | 107 uint32 protection_state_id_; |
| 108 | 108 |
| 109 scoped_ptr<ImageTransportHelper> helper_; | 109 scoped_ptr<ImageTransportHelper> helper_; |
| 110 gfx::GLSurfaceHandle handle_; | 110 gfx::GLSurfaceHandle handle_; |
| 111 GpuCommandBufferStub* parent_stub_; | 111 GpuCommandBufferStub* parent_stub_; |
| 112 | 112 |
| 113 // The surface used to make the context current. It's not being rendered into, |
| 114 // since we always bind one of the FBOs. |
| 115 scoped_refptr<GLSurface> surface_; |
| 116 |
| 113 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); | 117 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); |
| 114 }; | 118 }; |
| 115 | 119 |
| 116 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ | 120 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ |
| OLD | NEW |