Loading media/libstagefright/SurfaceUtils.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -111,8 +111,9 @@ status_t setNativeWindowSizeFormatAndUsage( } } int finalUsage = usage | consumerUsage; ALOGV("gralloc usage: %#x(producer) + %#x(consumer) = %#x", usage, consumerUsage, finalUsage); uint64_t finalUsage = (uint32_t) usage | (uint32_t) consumerUsage; ALOGV("gralloc usage: %#x(producer) + %#x(consumer) = 0x%" PRIx64, usage, consumerUsage, finalUsage); err = native_window_set_usage(nativeWindow, finalUsage); if (err != NO_ERROR) { ALOGE("native_window_set_usage failed: %s (%d)", strerror(-err), -err); Loading @@ -126,7 +127,7 @@ status_t setNativeWindowSizeFormatAndUsage( return err; } ALOGD("set up nativeWindow %p for %dx%d, color %#x, rotation %d, usage %#x", ALOGD("set up nativeWindow %p for %dx%d, color %#x, rotation %d, usage 0x%" PRIx64, nativeWindow, width, height, format, rotation, finalUsage); return NO_ERROR; } Loading Loading
media/libstagefright/SurfaceUtils.cpp +4 −3 Original line number Diff line number Diff line Loading @@ -111,8 +111,9 @@ status_t setNativeWindowSizeFormatAndUsage( } } int finalUsage = usage | consumerUsage; ALOGV("gralloc usage: %#x(producer) + %#x(consumer) = %#x", usage, consumerUsage, finalUsage); uint64_t finalUsage = (uint32_t) usage | (uint32_t) consumerUsage; ALOGV("gralloc usage: %#x(producer) + %#x(consumer) = 0x%" PRIx64, usage, consumerUsage, finalUsage); err = native_window_set_usage(nativeWindow, finalUsage); if (err != NO_ERROR) { ALOGE("native_window_set_usage failed: %s (%d)", strerror(-err), -err); Loading @@ -126,7 +127,7 @@ status_t setNativeWindowSizeFormatAndUsage( return err; } ALOGD("set up nativeWindow %p for %dx%d, color %#x, rotation %d, usage %#x", ALOGD("set up nativeWindow %p for %dx%d, color %#x, rotation %d, usage 0x%" PRIx64, nativeWindow, width, height, format, rotation, finalUsage); return NO_ERROR; } Loading