| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 5 #ifndef GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
| 6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 6 #define GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 void Destroy() override; | 43 void Destroy() override; |
| 44 bool Resize(const gfx::Size& size, | 44 bool Resize(const gfx::Size& size, |
| 45 float scale_factor, | 45 float scale_factor, |
| 46 bool has_alpha) override; | 46 bool has_alpha) override; |
| 47 bool IsOffscreen() override; | 47 bool IsOffscreen() override; |
| 48 gfx::SwapResult SwapBuffers() override; | 48 gfx::SwapResult SwapBuffers() override; |
| 49 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; | 49 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; |
| 50 bool SupportsPostSubBuffer() override; | 50 bool SupportsPostSubBuffer() override; |
| 51 gfx::Size GetSize() override; | 51 gfx::Size GetSize() override; |
| 52 void* GetHandle() override; | 52 void* GetHandle() override; |
| 53 gl::GLSurfaceFormat GetFormat() override; |
| 53 bool OnMakeCurrent(gl::GLContext* context) override; | 54 bool OnMakeCurrent(gl::GLContext* context) override; |
| 54 bool ScheduleOverlayPlane(int z_order, | 55 bool ScheduleOverlayPlane(int z_order, |
| 55 gfx::OverlayTransform transform, | 56 gfx::OverlayTransform transform, |
| 56 gl::GLImage* image, | 57 gl::GLImage* image, |
| 57 const gfx::Rect& bounds_rect, | 58 const gfx::Rect& bounds_rect, |
| 58 const gfx::RectF& crop_rect) override; | 59 const gfx::RectF& crop_rect) override; |
| 59 bool ScheduleCALayer(const ui::CARendererLayerParams& params) override; | 60 bool ScheduleCALayer(const ui::CARendererLayerParams& params) override; |
| 60 void ScheduleCALayerInUseQuery( | 61 void ScheduleCALayerInUseQuery( |
| 61 std::vector<CALayerInUseQuery> queries) override; | 62 std::vector<CALayerInUseQuery> queries) override; |
| 62 bool IsSurfaceless() const override; | 63 bool IsSurfaceless() const override; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 base::ScopedTypeRef<CGLContextObj> fence_context_obj_; | 98 base::ScopedTypeRef<CGLContextObj> fence_context_obj_; |
| 98 | 99 |
| 99 // The renderer ID that all contexts made current to this surface should be | 100 // The renderer ID that all contexts made current to this surface should be |
| 100 // targeting. | 101 // targeting. |
| 101 GLint gl_renderer_id_; | 102 GLint gl_renderer_id_; |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace gpu | 105 } // namespace gpu |
| 105 | 106 |
| 106 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 107 #endif // GPU_IPC_SERVICE_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
| OLD | NEW |