Chromium Code Reviews| Index: cc/surfaces/surface_info.h |
| diff --git a/cc/surfaces/surface_info.h b/cc/surfaces/surface_info.h |
| index 14cfab554b360cb443be4bd50b018277743b040b..1a39becc3c1d1b407da25f23c005037eae27424d 100644 |
| --- a/cc/surfaces/surface_info.h |
| +++ b/cc/surfaces/surface_info.h |
| @@ -29,10 +29,7 @@ class SurfaceInfo { |
| device_scale_factor_(device_scale_factor), |
| size_in_pixels_(size_in_pixels) {} |
| - bool is_valid() const { |
| - return id_.is_valid() && device_scale_factor_ != 0 && |
| - !size_in_pixels_.IsEmpty(); |
| - } |
| + bool is_valid() const { return id_.is_valid(); } |
|
Fady Samuel
2017/05/08 20:21:19
Why?
Saman Sami
2017/05/08 20:40:32
I need to fix some tests that clash with the origi
|
| bool operator==(const SurfaceInfo& info) const { |
| return id_ == info.id() && |