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 #include "ui/ozone/platform/cast/surface_factory_cast.h" | 5 #include "ui/ozone/platform/cast/surface_factory_cast.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
9 | 9 |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 class CastPixmap : public NativePixmap { | 183 class CastPixmap : public NativePixmap { |
184 public: | 184 public: |
185 CastPixmap() {} | 185 CastPixmap() {} |
186 | 186 |
187 void* GetEGLClientBuffer() override { | 187 void* GetEGLClientBuffer() override { |
188 // TODO(halliwell): try to implement this through CastEglPlatform. | 188 // TODO(halliwell): try to implement this through CastEglPlatform. |
189 return nullptr; | 189 return nullptr; |
190 } | 190 } |
191 int GetDmaBufFd() override { return 0; } | 191 int GetDmaBufFd() override { return 0; } |
192 int GetDmaBufPitch() override { return 0; } | 192 int GetDmaBufPitch() override { return 0; } |
| 193 gfx::BufferFormat GetBufferFormat() override { |
| 194 return gfx::BufferFormat::LAST; |
| 195 } |
193 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 196 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
194 int plane_z_order, | 197 int plane_z_order, |
195 gfx::OverlayTransform plane_transform, | 198 gfx::OverlayTransform plane_transform, |
196 const gfx::Rect& display_bounds, | 199 const gfx::Rect& display_bounds, |
197 const gfx::RectF& crop_rect) override { | 200 const gfx::RectF& crop_rect) override { |
198 return true; | 201 return true; |
199 } | 202 } |
200 void SetScalingCallback(const ScalingCallback& scaling_callback) override {} | 203 void SetProcessingCallback( |
201 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override { | 204 const ProcessingCallback& processing_callback) override {} |
| 205 scoped_refptr<NativePixmap> GetProcessedPixmap( |
| 206 gfx::Size target_size, |
| 207 gfx::BufferFormat target_format) override { |
202 return nullptr; | 208 return nullptr; |
203 } | 209 } |
204 gfx::NativePixmapHandle ExportHandle() override { | 210 gfx::NativePixmapHandle ExportHandle() override { |
205 return gfx::NativePixmapHandle(); | 211 return gfx::NativePixmapHandle(); |
206 } | 212 } |
207 | 213 |
208 private: | 214 private: |
209 ~CastPixmap() override {} | 215 ~CastPixmap() override {} |
210 | 216 |
211 DISALLOW_COPY_AND_ASSIGN(CastPixmap); | 217 DISALLOW_COPY_AND_ASSIGN(CastPixmap); |
(...skipping 18 matching lines...) Expand all Loading... |
230 return false; | 236 return false; |
231 } | 237 } |
232 | 238 |
233 set_gl_get_proc_address.Run(gl_proc); | 239 set_gl_get_proc_address.Run(gl_proc); |
234 add_gl_library.Run(lib_egl); | 240 add_gl_library.Run(lib_egl); |
235 add_gl_library.Run(lib_gles2); | 241 add_gl_library.Run(lib_gles2); |
236 return true; | 242 return true; |
237 } | 243 } |
238 | 244 |
239 } // namespace ui | 245 } // namespace ui |
OLD | NEW |