| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 5 #ifndef CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 6 #define CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #if defined(ENABLE_GPU) | 9 #if defined(ENABLE_GPU) |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 uint32* size); | 65 uint32* size); |
| 66 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); | 66 void OnResizeOffscreenFrameBuffer(const gfx::Size& size); |
| 67 | 67 |
| 68 void OnSwapBuffers(); | 68 void OnSwapBuffers(); |
| 69 | 69 |
| 70 #if defined(OS_MACOSX) | 70 #if defined(OS_MACOSX) |
| 71 void OnSetWindowSize(const gfx::Size& size); | 71 void OnSetWindowSize(const gfx::Size& size); |
| 72 void SwapBuffersCallback(); | 72 void SwapBuffersCallback(); |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 #if defined(OS_LINUX) |
| 76 void ResizeCallback(gfx::Size size); |
| 77 #endif |
| 78 |
| 75 // The lifetime of objects of this class is managed by a GpuChannel. The | 79 // The lifetime of objects of this class is managed by a GpuChannel. The |
| 76 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they | 80 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they |
| 77 // are destroyed. So a raw pointer is safe. | 81 // are destroyed. So a raw pointer is safe. |
| 78 GpuChannel* channel_; | 82 GpuChannel* channel_; |
| 79 | 83 |
| 80 gfx::PluginWindowHandle handle_; | 84 gfx::PluginWindowHandle handle_; |
| 81 base::WeakPtr<GpuCommandBufferStub> parent_; | 85 base::WeakPtr<GpuCommandBufferStub> parent_; |
| 82 gfx::Size initial_size_; | 86 gfx::Size initial_size_; |
| 83 std::string allowed_extensions_; | 87 std::string allowed_extensions_; |
| 84 std::vector<int32> requested_attribs_; | 88 std::vector<int32> requested_attribs_; |
| 85 uint32 parent_texture_id_; | 89 uint32 parent_texture_id_; |
| 86 int32 route_id_; | 90 int32 route_id_; |
| 87 | 91 |
| 88 // The following two fields are used on Mac OS X to identify the window | 92 // The following two fields are used on Mac OS X to identify the window |
| 89 // for the rendering results on the browser side. | 93 // for the rendering results on the browser side. |
| 90 int32 renderer_id_; | 94 int32 renderer_id_; |
| 91 int32 render_view_id_; | 95 int32 render_view_id_; |
| 92 | 96 |
| 93 scoped_ptr<gpu::CommandBufferService> command_buffer_; | 97 scoped_ptr<gpu::CommandBufferService> command_buffer_; |
| 94 scoped_ptr<gpu::GPUProcessor> processor_; | 98 scoped_ptr<gpu::GPUProcessor> processor_; |
| 95 | 99 |
| 96 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 100 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 97 }; | 101 }; |
| 98 | 102 |
| 99 #endif // ENABLE_GPU | 103 #endif // ENABLE_GPU |
| 100 | 104 |
| 101 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ | 105 #endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |