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 25 matching lines...) Expand all Loading... |
36 bool IsOffscreen() override; | 36 bool IsOffscreen() override; |
37 gfx::SwapResult SwapBuffers() override; | 37 gfx::SwapResult SwapBuffers() override; |
38 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; | 38 gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override; |
39 bool SupportsPostSubBuffer() override; | 39 bool SupportsPostSubBuffer() override; |
40 gfx::Size GetSize() override; | 40 gfx::Size GetSize() override; |
41 void* GetHandle() override; | 41 void* GetHandle() override; |
42 bool OnMakeCurrent(gfx::GLContext* context) override; | 42 bool OnMakeCurrent(gfx::GLContext* context) override; |
43 bool SetBackbufferAllocation(bool allocated) override; | 43 bool SetBackbufferAllocation(bool allocated) override; |
44 bool ScheduleOverlayPlane(int z_order, | 44 bool ScheduleOverlayPlane(int z_order, |
45 gfx::OverlayTransform transform, | 45 gfx::OverlayTransform transform, |
| 46 gfx::BufferFormat storage_format, |
46 gl::GLImage* image, | 47 gl::GLImage* image, |
47 const gfx::Rect& bounds_rect, | 48 const gfx::Rect& bounds_rect, |
48 const gfx::RectF& crop_rect) override; | 49 const gfx::RectF& crop_rect, |
| 50 bool handle_scaling) override; |
49 bool ScheduleCALayer(gl::GLImage* contents_image, | 51 bool ScheduleCALayer(gl::GLImage* contents_image, |
50 const gfx::RectF& contents_rect, | 52 const gfx::RectF& contents_rect, |
51 float opacity, | 53 float opacity, |
52 unsigned background_color, | 54 unsigned background_color, |
53 const gfx::SizeF& bounds_size, | 55 const gfx::SizeF& bounds_size, |
54 const gfx::Transform& transform) override; | 56 const gfx::Transform& transform) override; |
55 bool IsSurfaceless() const override; | 57 bool IsSurfaceless() const override; |
56 | 58 |
57 // ImageTransportSurface implementation | 59 // ImageTransportSurface implementation |
58 void OnBufferPresented( | 60 void OnBufferPresented( |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // swap and increments with each call to ScheduleCALayer. | 145 // swap and increments with each call to ScheduleCALayer. |
144 int next_ca_layer_z_order_; | 146 int next_ca_layer_z_order_; |
145 | 147 |
146 base::Timer display_pending_swap_timer_; | 148 base::Timer display_pending_swap_timer_; |
147 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; | 149 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; |
148 }; | 150 }; |
149 | 151 |
150 } // namespace content | 152 } // namespace content |
151 | 153 |
152 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 154 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
OLD | NEW |