| 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 "base/callback_helpers.h" | 7 #include "base/callback_helpers.h" |
| 8 #include "chromecast/public/cast_egl_platform.h" | 8 #include "chromecast/public/cast_egl_platform.h" |
| 9 #include "chromecast/public/graphics_types.h" | 9 #include "chromecast/public/graphics_types.h" |
| 10 #include "ui/gfx/geometry/quad_f.h" | 10 #include "ui/gfx/geometry/quad_f.h" |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 int plane_z_order, | 204 int plane_z_order, |
| 205 gfx::OverlayTransform plane_transform, | 205 gfx::OverlayTransform plane_transform, |
| 206 const gfx::Rect& display_bounds, | 206 const gfx::Rect& display_bounds, |
| 207 const gfx::RectF& crop_rect) override { | 207 const gfx::RectF& crop_rect) override { |
| 208 return true; | 208 return true; |
| 209 } | 209 } |
| 210 void SetScalingCallback(const ScalingCallback& scaling_callback) override {} | 210 void SetScalingCallback(const ScalingCallback& scaling_callback) override {} |
| 211 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override { | 211 scoped_refptr<NativePixmap> GetScaledPixmap(gfx::Size new_size) override { |
| 212 return nullptr; | 212 return nullptr; |
| 213 } | 213 } |
| 214 gfx::NativePixmapHandle ExportHandle() override { |
| 215 return gfx::NativePixmapHandle(); |
| 216 } |
| 214 | 217 |
| 215 private: | 218 private: |
| 216 ~CastPixmap() override {} | 219 ~CastPixmap() override {} |
| 217 | 220 |
| 218 DISALLOW_COPY_AND_ASSIGN(CastPixmap); | 221 DISALLOW_COPY_AND_ASSIGN(CastPixmap); |
| 219 }; | 222 }; |
| 220 return make_scoped_refptr(new CastPixmap); | 223 return make_scoped_refptr(new CastPixmap); |
| 221 } | 224 } |
| 222 | 225 |
| 223 bool SurfaceFactoryCast::LoadEGLGLES2Bindings( | 226 bool SurfaceFactoryCast::LoadEGLGLES2Bindings( |
| (...skipping 13 matching lines...) Expand all Loading... |
| 237 return false; | 240 return false; |
| 238 } | 241 } |
| 239 | 242 |
| 240 set_gl_get_proc_address.Run(gl_proc); | 243 set_gl_get_proc_address.Run(gl_proc); |
| 241 add_gl_library.Run(lib_egl); | 244 add_gl_library.Run(lib_egl); |
| 242 add_gl_library.Run(lib_gles2); | 245 add_gl_library.Run(lib_gles2); |
| 243 return true; | 246 return true; |
| 244 } | 247 } |
| 245 | 248 |
| 246 } // namespace ui | 249 } // namespace ui |
| OLD | NEW |