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

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

Issue 855023003: Add presubmit check for scoped_ptr usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { 212 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override {
213 callback.Run(); 213 callback.Run();
214 return true; 214 return true;
215 } 215 }
216 216
217 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { 217 bool ResizeNativeWindow(const gfx::Size& viewport_size) override {
218 return true; 218 return true;
219 } 219 }
220 220
221 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { 221 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override {
222 return scoped_ptr<gfx::VSyncProvider>(); 222 return nullptr;
223 } 223 }
224 224
225 private: 225 private:
226 LibeglplatformShimLoader* eglplatform_shim_; 226 LibeglplatformShimLoader* eglplatform_shim_;
227 intptr_t native_window_; 227 intptr_t native_window_;
228 }; 228 };
229 229
230 // EGL surface factory for libeglplatform_shim. 230 // EGL surface factory for libeglplatform_shim.
231 // 231 //
232 // This finds the right EGL/GLES2 libraries for loading, and creates 232 // This finds the right EGL/GLES2 libraries for loading, and creates
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 } // namespace 391 } // namespace
392 392
393 OzonePlatform* CreateOzonePlatformEgltest() { 393 OzonePlatform* CreateOzonePlatformEgltest() {
394 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 394 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
395 platform->Initialize(); 395 platform->Initialize();
396 return platform; 396 return platform;
397 } 397 }
398 398
399 } // namespace ui 399 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/hardware_display_controller.cc ('k') | ui/ozone/platform/test/test_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698