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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 { | 193 gfx::BufferFormat GetBufferFormat() override { |
194 return gfx::BufferFormat::LAST; | 194 return gfx::BufferFormat::LAST; |
195 } | 195 } |
196 gfx::Size size() override { return gfx::Size(); } | |
Pawel Osciak
2015/11/20 10:09:18
I'm not sure this is what we'd like to have, i.e.
william.xie1
2015/11/23 03:33:58
@Spang, any comments?
| |
197 | |
196 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 198 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
197 int plane_z_order, | 199 int plane_z_order, |
198 gfx::OverlayTransform plane_transform, | 200 gfx::OverlayTransform plane_transform, |
199 const gfx::Rect& display_bounds, | 201 const gfx::Rect& display_bounds, |
200 const gfx::RectF& crop_rect) override { | 202 const gfx::RectF& crop_rect) override { |
201 return true; | 203 return true; |
202 } | 204 } |
203 void SetProcessingCallback( | 205 void SetProcessingCallback( |
204 const ProcessingCallback& processing_callback) override {} | 206 const ProcessingCallback& processing_callback) override {} |
205 scoped_refptr<NativePixmap> GetProcessedPixmap( | 207 scoped_refptr<NativePixmap> GetProcessedPixmap( |
(...skipping 30 matching lines...) Expand all Loading... | |
236 return false; | 238 return false; |
237 } | 239 } |
238 | 240 |
239 set_gl_get_proc_address.Run(gl_proc); | 241 set_gl_get_proc_address.Run(gl_proc); |
240 add_gl_library.Run(lib_egl); | 242 add_gl_library.Run(lib_egl); |
241 add_gl_library.Run(lib_gles2); | 243 add_gl_library.Run(lib_gles2); |
242 return true; | 244 return true; |
243 } | 245 } |
244 | 246 |
245 } // namespace ui | 247 } // namespace ui |
OLD | NEW |