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

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

Issue 365193003: Change NativeBufferOzone to be an object and move the overlay calls to the surface object. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface_factory.cc ('k') | ui/ozone/public/native_pixmap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual bool OnSwapBuffers() OVERRIDE { return true; } 65 virtual bool OnSwapBuffers() OVERRIDE { return true; }
66 66
67 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE { 67 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) OVERRIDE {
68 return true; 68 return true;
69 } 69 }
70 70
71 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE { 71 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() OVERRIDE {
72 return scoped_ptr<gfx::VSyncProvider>(); 72 return scoped_ptr<gfx::VSyncProvider>();
73 } 73 }
74 74
75 virtual bool ScheduleOverlayPlane(int plane_z_order,
76 gfx::OverlayTransform plane_transform,
77 scoped_refptr<ui::NativePixmap> buffer,
78 const gfx::Rect& display_bounds,
79 const gfx::RectF& crop_rect) OVERRIDE {
80 return false;
81 }
82
75 private: 83 private:
76 LibeglplatformShimLoader* eglplatform_shim_; 84 LibeglplatformShimLoader* eglplatform_shim_;
77 intptr_t native_window_; 85 intptr_t native_window_;
78 }; 86 };
79 87
80 // EGL surface factory for libeglplatform_shim. 88 // EGL surface factory for libeglplatform_shim.
81 // 89 //
82 // This finds the right EGL/GLES2 libraries for loading, and creates 90 // This finds the right EGL/GLES2 libraries for loading, and creates
83 // a single native window via ShimCreateWindow for drawing 91 // a single native window via ShimCreateWindow for drawing
84 // into. 92 // into.
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 303
296 } // namespace 304 } // namespace
297 305
298 OzonePlatform* CreateOzonePlatformEgltest() { 306 OzonePlatform* CreateOzonePlatformEgltest() {
299 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 307 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
300 platform->Initialize(); 308 platform->Initialize();
301 return platform; 309 return platform;
302 } 310 }
303 311
304 } // namespace ui 312 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_surface_factory.cc ('k') | ui/ozone/public/native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698