| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <stddef.h> |
| 6 |
| 5 #include "components/exo/buffer.h" | 7 #include "components/exo/buffer.h" |
| 6 #include "components/exo/shared_memory.h" | 8 #include "components/exo/shared_memory.h" |
| 7 #include "components/exo/test/exo_test_base.h" | 9 #include "components/exo/test/exo_test_base.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 9 #include "ui/gfx/buffer_format_util.h" | 11 #include "ui/gfx/buffer_format_util.h" |
| 10 | 12 |
| 11 namespace exo { | 13 namespace exo { |
| 12 namespace { | 14 namespace { |
| 13 | 15 |
| 14 using SharedMemoryTest = test::ExoTestBase; | 16 using SharedMemoryTest = test::ExoTestBase; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 bottom_right_buffer_size, format, | 52 bottom_right_buffer_size, format, |
| 51 (buffer_size.height() - bottom_right_buffer_size.height()) * | 53 (buffer_size.height() - bottom_right_buffer_size.height()) * |
| 52 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0) + | 54 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0) + |
| 53 (buffer_size.width() - bottom_right_buffer_size.width()) * 4, | 55 (buffer_size.width() - bottom_right_buffer_size.width()) * 4, |
| 54 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0)); | 56 gfx::RowSizeForBufferFormat(buffer_size.width(), format, 0)); |
| 55 EXPECT_TRUE(bottom_right_buffer); | 57 EXPECT_TRUE(bottom_right_buffer); |
| 56 } | 58 } |
| 57 | 59 |
| 58 } // namespace | 60 } // namespace |
| 59 } // namespace exo | 61 } // namespace exo |
| OLD | NEW |