Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Side by Side Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 445163003: With the overlay path moving back to passing AcceleratedWidgets, move the implementation back into … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/hardware_display_controller.cc ('k') | ui/ozone/public/surface_factory_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698