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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 void Destroy() override; | 67 void Destroy() override; |
68 bool DeferDraws() override; | 68 bool DeferDraws() override; |
69 bool IsOffscreen() override; | 69 bool IsOffscreen() override; |
70 bool SwapBuffers() override; | 70 bool SwapBuffers() override; |
71 bool PostSubBuffer(int x, int y, int width, int height) override; | 71 bool PostSubBuffer(int x, int y, int width, int height) override; |
72 bool SupportsPostSubBuffer() override; | 72 bool SupportsPostSubBuffer() override; |
73 gfx::Size GetSize() override; | 73 gfx::Size GetSize() override; |
74 void* GetHandle() override; | 74 void* GetHandle() override; |
75 void* GetDisplay() override; | 75 void* GetDisplay() override; |
76 bool OnMakeCurrent(gfx::GLContext* context) override; | 76 bool OnMakeCurrent(gfx::GLContext* context) override; |
| 77 void NotifyWasBound() override; |
77 unsigned int GetBackingFrameBufferObject() override; | 78 unsigned int GetBackingFrameBufferObject() override; |
78 bool SetBackbufferAllocation(bool allocated) override; | 79 bool SetBackbufferAllocation(bool allocated) override; |
79 void SetFrontbufferAllocation(bool allocated) override; | 80 void SetFrontbufferAllocation(bool allocated) override; |
80 | 81 |
81 // Called when the context may continue to make forward progress after a swap. | 82 // Called when the context may continue to make forward progress after a swap. |
82 void SendSwapBuffers(uint64 surface_handle, | 83 void SendSwapBuffers(uint64 surface_handle, |
83 const gfx::Size pixel_size, | 84 const gfx::Size pixel_size, |
84 float scale_factor); | 85 float scale_factor); |
85 void SetRendererID(int renderer_id); | 86 void SetRendererID(int renderer_id); |
86 | 87 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 std::vector<ui::LatencyInfo> latency_info_; | 130 std::vector<ui::LatencyInfo> latency_info_; |
130 | 131 |
131 scoped_ptr<ImageTransportHelper> helper_; | 132 scoped_ptr<ImageTransportHelper> helper_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); | 134 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurfaceFBO); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace content | 137 } // namespace content |
137 | 138 |
138 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_ | 139 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_MAC_H_ |
OLD | NEW |