OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/egltest/ozone_platform_egltest.h" | 5 #include "ui/ozone/platform/egltest/ozone_platform_egltest.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 virtual bool OnSwapBuffers() OVERRIDE { return true; } | 173 virtual bool OnSwapBuffers() OVERRIDE { return true; } |
174 | 174 |
175 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { | 175 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { |
176 return true; | 176 return true; |
177 } | 177 } |
178 | 178 |
179 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { | 179 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { |
180 return scoped_ptr<gfx::VSyncProvider>(); | 180 return scoped_ptr<gfx::VSyncProvider>(); |
181 } | 181 } |
182 | 182 |
183 virtual bool ScheduleOverlayPlane(int plane_z_order, | |
184 gfx::OverlayTransform plane_transform, | |
185 scoped_refptr<ui::NativePixmap> buffer, | |
186 const gfx::Rect& display_bounds, | |
187 const gfx::RectF& crop_rect) OVERRIDE { | |
188 return false; | |
189 } | |
190 | |
191 private: | 183 private: |
192 LibeglplatformShimLoader* eglplatform_shim_; | 184 LibeglplatformShimLoader* eglplatform_shim_; |
193 intptr_t native_window_; | 185 intptr_t native_window_; |
194 }; | 186 }; |
195 | 187 |
196 // EGL surface factory for libeglplatform_shim. | 188 // EGL surface factory for libeglplatform_shim. |
197 // | 189 // |
198 // This finds the right EGL/GLES2 libraries for loading, and creates | 190 // This finds the right EGL/GLES2 libraries for loading, and creates |
199 // a single native window via ShimCreateWindow for drawing | 191 // a single native window via ShimCreateWindow for drawing |
200 // into. | 192 // into. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 379 |
388 } // namespace | 380 } // namespace |
389 | 381 |
390 OzonePlatform* CreateOzonePlatformEgltest() { | 382 OzonePlatform* CreateOzonePlatformEgltest() { |
391 OzonePlatformEgltest* platform = new OzonePlatformEgltest; | 383 OzonePlatformEgltest* platform = new OzonePlatformEgltest; |
392 platform->Initialize(); | 384 platform->Initialize(); |
393 return platform; | 385 return platform; |
394 } | 386 } |
395 | 387 |
396 } // namespace ui | 388 } // namespace ui |
OLD | NEW |