| Index: media/gpu/avda_picture_buffer_manager.cc
|
| diff --git a/media/gpu/avda_picture_buffer_manager.cc b/media/gpu/avda_picture_buffer_manager.cc
|
| index 4fe59e2df372d18632176cac163cca8cb23aece8..a77de5a1b6cc912f01424b3ad120b7b0b5b18f97 100644
|
| --- a/media/gpu/avda_picture_buffer_manager.cc
|
| +++ b/media/gpu/avda_picture_buffer_manager.cc
|
| @@ -28,16 +28,15 @@
|
| #include "ui/gl/scoped_binders.h"
|
| #include "ui/gl/scoped_make_current.h"
|
|
|
| -// If !|ptr|, log a message, post an error to |state_provider_|, and
|
| +// If !|ptr|, log a message, notify |state_provider_| of the error, and
|
| // return an optional value.
|
| -#define RETURN_IF_NULL(ptr, ...) \
|
| - do { \
|
| - if (!(ptr)) { \
|
| - DLOG(ERROR) << "Got null for " << #ptr; \
|
| - state_provider_->PostError(FROM_HERE, \
|
| - VideoDecodeAccelerator::ILLEGAL_STATE); \
|
| - return __VA_ARGS__; \
|
| - } \
|
| +#define RETURN_IF_NULL(ptr, ...) \
|
| + do { \
|
| + if (!(ptr)) { \
|
| + DLOG(ERROR) << "Got null for " << #ptr; \
|
| + state_provider_->NotifyError(VideoDecodeAccelerator::ILLEGAL_STATE); \
|
| + return __VA_ARGS__; \
|
| + } \
|
| } while (0)
|
|
|
| namespace media {
|
|
|