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

Unified Diff: ppapi/tests/test_graphics_3d.cc

Issue 14139012: PPAPI: More test cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Provide a message loop for "background thread" test so we can use a REQUIRED callback Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/tests/test_graphics_2d.cc ('k') | ppapi/tests/test_host_resolver_private.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_graphics_3d.cc
diff --git a/ppapi/tests/test_graphics_3d.cc b/ppapi/tests/test_graphics_3d.cc
index 987d5a8bae9bcf3151aed2719835fcc48b90ad0f..61bedbf198b2730e67caed19e31fcd3a1b251004 100644
--- a/ppapi/tests/test_graphics_3d.cc
+++ b/ppapi/tests/test_graphics_3d.cc
@@ -137,11 +137,8 @@ std::string TestGraphics3D::TestExtensionsGL() {
int32_t TestGraphics3D::SwapBuffersSync(pp::Graphics3D* context) {
TestCompletionCallback callback(instance_->pp_instance(), callback_type());
- int32_t rv = context->SwapBuffers(callback.GetCallback());
- if (rv != PP_OK_COMPLETIONPENDING)
- return rv;
-
- return callback.WaitForResult();
+ callback.WaitForResult(context->SwapBuffers(callback.GetCallback()));
+ return callback.result();
}
std::string TestGraphics3D::CheckPixelPPAPI(
« no previous file with comments | « ppapi/tests/test_graphics_2d.cc ('k') | ppapi/tests/test_host_resolver_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698