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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 193 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
194 int plane_z_order, | 194 int plane_z_order, |
195 gfx::OverlayTransform plane_transform, | 195 gfx::OverlayTransform plane_transform, |
196 const gfx::Rect& display_bounds, | 196 const gfx::Rect& display_bounds, |
197 const gfx::RectF& crop_rect) override { | 197 const gfx::RectF& crop_rect) override { |
198 return true; | 198 return true; |
199 } | 199 } |
200 void SetScalingCallback(const ScalingCallback& scaling_callback) override {} | 200 void SetProcessingCallback( |
201 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override { | 201 const ProcessingCallback& processing_callback) override {} |
| 202 scoped_refptr<NativePixmap> GetProcessedPixmap( |
| 203 gfx::Size target_size, |
| 204 gfx::BufferFormat target_format) override { |
202 return nullptr; | 205 return nullptr; |
203 } | 206 } |
204 gfx::NativePixmapHandle ExportHandle() override { | 207 gfx::NativePixmapHandle ExportHandle() override { |
205 return gfx::NativePixmapHandle(); | 208 return gfx::NativePixmapHandle(); |
206 } | 209 } |
207 | 210 |
208 private: | 211 private: |
209 ~CastPixmap() override {} | 212 ~CastPixmap() override {} |
210 | 213 |
211 DISALLOW_COPY_AND_ASSIGN(CastPixmap); | 214 DISALLOW_COPY_AND_ASSIGN(CastPixmap); |
(...skipping 18 matching lines...) Expand all Loading... |
230 return false; | 233 return false; |
231 } | 234 } |
232 | 235 |
233 set_gl_get_proc_address.Run(gl_proc); | 236 set_gl_get_proc_address.Run(gl_proc); |
234 add_gl_library.Run(lib_egl); | 237 add_gl_library.Run(lib_egl); |
235 add_gl_library.Run(lib_gles2); | 238 add_gl_library.Run(lib_gles2); |
236 return true; | 239 return true; |
237 } | 240 } |
238 | 241 |
239 } // namespace ui | 242 } // namespace ui |
OLD | NEW |