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

Unified Diff: ppapi/shared_impl/ppb_image_data_shared.cc

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 years, 10 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/shared_impl/ppb_graphics_3d_shared.cc ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_image_data_shared.cc
diff --git a/ppapi/shared_impl/ppb_image_data_shared.cc b/ppapi/shared_impl/ppb_image_data_shared.cc
index 3900c92197aa768711234948a72dbed4730aef7b..2dfbabdb96a08403a4f8a46ef9e3fa6688f99e5b 100644
--- a/ppapi/shared_impl/ppb_image_data_shared.cc
+++ b/ppapi/shared_impl/ppb_image_data_shared.cc
@@ -31,7 +31,7 @@ PP_ImageDataFormat PPB_ImageData_Shared::GetNativeImageDataFormat() {
else if (SK_R32_SHIFT == 0)
return PP_IMAGEDATAFORMAT_RGBA_PREMUL;
else
- return PP_IMAGEDATAFORMAT_BGRA_PREMUL; // Default to something on failure
+ return PP_IMAGEDATAFORMAT_BGRA_PREMUL; // Default to something on failure
#endif
}
@@ -46,8 +46,7 @@ PP_Bool PPB_ImageData_Shared::IsImageDataFormatSupported(
PP_Bool PPB_ImageData_Shared::IsImageDataDescValid(
const PP_ImageDataDesc& desc) {
return PP_FromBool(IsImageDataFormatSupported(desc.format) &&
- desc.size.width > 0 &&
- desc.size.height > 0 &&
+ desc.size.width > 0 && desc.size.height > 0 &&
desc.stride > 0);
}
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.cc ('k') | ppapi/shared_impl/ppb_input_event_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698