| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
| 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
| 7 | 7 |
| 8 #include "base/mac/scoped_cftyperef.h" | 8 #include "base/mac/scoped_cftyperef.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/common/gpu/gpu_command_buffer_stub.h" | 10 #include "content/common/gpu/gpu_command_buffer_stub.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 ImageTransportSurfaceFBO(GpuChannelManager* manager, | 65 ImageTransportSurfaceFBO(GpuChannelManager* manager, |
| 66 GpuCommandBufferStub* stub, | 66 GpuCommandBufferStub* stub, |
| 67 gfx::PluginWindowHandle handle); | 67 gfx::PluginWindowHandle handle); |
| 68 | 68 |
| 69 // GLSurface implementation | 69 // GLSurface implementation |
| 70 bool Initialize() override; | 70 bool Initialize() override; |
| 71 void Destroy() override; | 71 void Destroy() override; |
| 72 bool DeferDraws() override; | 72 bool DeferDraws() override; |
| 73 bool IsOffscreen() override; | 73 bool IsOffscreen() override; |
| 74 gfx::SwapResult SwapBuffers() override; | 74 bool SwapBuffers() override; |
| 75 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; | 75 bool PostSubBuffer(int x, int y, int width, int height) override; |
| 76 bool SupportsPostSubBuffer() override; | 76 bool SupportsPostSubBuffer() override; |
| 77 gfx::Size GetSize() override; | 77 gfx::Size GetSize() override; |
| 78 void* GetHandle() override; | 78 void* GetHandle() override; |
| 79 void* GetDisplay() override; | 79 void* GetDisplay() override; |
| 80 bool OnMakeCurrent(gfx::GLContext* context) override; | 80 bool OnMakeCurrent(gfx::GLContext* context) override; |
| 81 void NotifyWasBound() override; | 81 void NotifyWasBound() override; |
| 82 unsigned int GetBackingFrameBufferObject() override; | 82 unsigned int GetBackingFrameBufferObject() override; |
| 83 bool SetBackbufferAllocation(bool allocated) override; | 83 bool SetBackbufferAllocation(bool allocated) override; |
| 84 void SetFrontbufferAllocation(bool allocated) override; | 84 void SetFrontbufferAllocation(bool allocated) override; |
| 85 | 85 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 std::vector<ui::LatencyInfo> latency_info_; | 135 std::vector<ui::LatencyInfo> latency_info_; |
| 136 | 136 |
| 137 scoped_ptr<ImageTransportHelper> helper_; | 137 scoped_ptr<ImageTransportHelper> helper_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); | 139 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } // namespace content | 142 } // namespace content |
| 143 | 143 |
| 144 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ | 144 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_FBO_MAC_H_ |
| OLD | NEW |