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

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

Issue 1436993002: Remove return bool in SurfaceOzoneEGL::OnSwapBuffersAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/drm/gpu/gbm_surfaceless.cc ('k') | ui/ozone/public/surface_ozone_egl.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/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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 219 }
220 ~SurfaceOzoneEgltest() override { 220 ~SurfaceOzoneEgltest() override {
221 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_); 221 bool ret = eglplatform_shim_->ShimReleaseNativeWindow(native_window_);
222 DCHECK(ret); 222 DCHECK(ret);
223 } 223 }
224 224
225 intptr_t GetNativeWindow() override { return native_window_; } 225 intptr_t GetNativeWindow() override { return native_window_; }
226 226
227 bool OnSwapBuffers() override { return true; } 227 bool OnSwapBuffers() override { return true; }
228 228
229 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override { 229 void OnSwapBuffersAsync(const SwapCompletionCallback& callback) override {
230 callback.Run(gfx::SwapResult::SWAP_ACK); 230 callback.Run(gfx::SwapResult::SWAP_ACK);
231 return true;
232 } 231 }
233 232
234 bool ResizeNativeWindow(const gfx::Size& viewport_size) override { 233 bool ResizeNativeWindow(const gfx::Size& viewport_size) override {
235 return true; 234 return true;
236 } 235 }
237 236
238 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override { 237 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override {
239 return nullptr; 238 return nullptr;
240 } 239 }
241 240
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 416
418 } // namespace 417 } // namespace
419 418
420 OzonePlatform* CreateOzonePlatformEgltest() { 419 OzonePlatform* CreateOzonePlatformEgltest() {
421 OzonePlatformEgltest* platform = new OzonePlatformEgltest; 420 OzonePlatformEgltest* platform = new OzonePlatformEgltest;
422 platform->Initialize(); 421 platform->Initialize();
423 return platform; 422 return platform;
424 } 423 }
425 424
426 } // namespace ui 425 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surfaceless.cc ('k') | ui/ozone/public/surface_ozone_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698