| Index: cc/surfaces/surface_id.h
|
| diff --git a/cc/surfaces/surface_id.h b/cc/surfaces/surface_id.h
|
| index 5be370ed3fb427249f2ec9b6428bb37984eedbce..8333971ddb344715d71cdc32b98655f2ed8a0cbd 100644
|
| --- a/cc/surfaces/surface_id.h
|
| +++ b/cc/surfaces/surface_id.h
|
| @@ -41,6 +41,10 @@ class SurfaceId {
|
| const LocalFrameId& local_frame_id)
|
| : frame_sink_id_(frame_sink_id), local_frame_id_(local_frame_id) {}
|
|
|
| + bool is_valid() const {
|
| + return frame_sink_id_.is_valid() && local_frame_id_.is_valid();
|
| + }
|
| +
|
| bool is_null() const {
|
| return frame_sink_id_.is_null() && local_frame_id_.is_null();
|
| }
|
|
|