| 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 CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
| 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 bool SupportsPostSubBuffer() override; | 38 bool SupportsPostSubBuffer() override; |
| 39 gfx::Size GetSize() override; | 39 gfx::Size GetSize() override; |
| 40 void* GetHandle() override; | 40 void* GetHandle() override; |
| 41 bool OnMakeCurrent(gfx::GLContext* context) override; | 41 bool OnMakeCurrent(gfx::GLContext* context) override; |
| 42 bool SetBackbufferAllocation(bool allocated) override; | 42 bool SetBackbufferAllocation(bool allocated) override; |
| 43 bool ScheduleOverlayPlane(int z_order, | 43 bool ScheduleOverlayPlane(int z_order, |
| 44 gfx::OverlayTransform transform, | 44 gfx::OverlayTransform transform, |
| 45 gfx::GLImage* image, | 45 gfx::GLImage* image, |
| 46 const gfx::Rect& bounds_rect, | 46 const gfx::Rect& bounds_rect, |
| 47 const gfx::RectF& crop_rect) override; | 47 const gfx::RectF& crop_rect) override; |
| 48 bool ScheduleSolidColorOverlayPlane(int z_order, |
| 49 const gfx::Rect& bounds_rect, |
| 50 float red, |
| 51 float green, |
| 52 float blue, |
| 53 float alpha) override; |
| 48 bool IsSurfaceless() const override; | 54 bool IsSurfaceless() const override; |
| 49 | 55 |
| 50 // ImageTransportSurface implementation | 56 // ImageTransportSurface implementation |
| 51 void OnBufferPresented( | 57 void OnBufferPresented( |
| 52 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; | 58 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; |
| 53 void OnResize(gfx::Size pixel_size, float scale_factor) override; | 59 void OnResize(gfx::Size pixel_size, float scale_factor) override; |
| 54 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; | 60 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; |
| 55 | 61 |
| 56 // ui::GpuSwitchingObserver implementation. | 62 // ui::GpuSwitchingObserver implementation. |
| 57 void OnGpuSwitched() override; | 63 void OnGpuSwitched() override; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 base::TimeTicks vsync_timebase_; | 138 base::TimeTicks vsync_timebase_; |
| 133 base::TimeDelta vsync_interval_; | 139 base::TimeDelta vsync_interval_; |
| 134 | 140 |
| 135 base::Timer display_pending_swap_timer_; | 141 base::Timer display_pending_swap_timer_; |
| 136 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; | 142 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; |
| 137 }; | 143 }; |
| 138 | 144 |
| 139 } // namespace content | 145 } // namespace content |
| 140 | 146 |
| 141 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 147 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
| OLD | NEW |