| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "cc/output/compositor_frame.h" | 5 #include "cc/output/compositor_frame.h" |
| 6 #include "cc/output/delegated_frame_data.h" | 6 #include "cc/output/delegated_frame_data.h" |
| 7 #include "cc/quads/render_pass.h" | 7 #include "cc/quads/render_pass.h" |
| 8 #include "cc/quads/render_pass_draw_quad.h" | 8 #include "cc/quads/render_pass_draw_quad.h" |
| 9 #include "cc/quads/solid_color_draw_quad.h" | 9 #include "cc/quads/solid_color_draw_quad.h" |
| 10 #include "cc/quads/surface_draw_quad.h" | 10 #include "cc/quads/surface_draw_quad.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "cc/test/test_shared_bitmap_manager.h" | 24 #include "cc/test/test_shared_bitmap_manager.h" |
| 25 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
| 26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
| 27 #include "third_party/skia/include/core/SkColor.h" | 27 #include "third_party/skia/include/core/SkColor.h" |
| 28 | 28 |
| 29 namespace cc { | 29 namespace cc { |
| 30 namespace { | 30 namespace { |
| 31 | 31 |
| 32 SurfaceId InvalidSurfaceId() { | 32 SurfaceId InvalidSurfaceId() { |
| 33 static SurfaceId invalid; | 33 static SurfaceId invalid; |
| 34 invalid.id = -1; | 34 invalid.id = static_cast<uint64_t>(-1); |
| 35 return invalid; | 35 return invalid; |
| 36 } | 36 } |
| 37 | 37 |
| 38 gfx::Size SurfaceSize() { | 38 gfx::Size SurfaceSize() { |
| 39 static gfx::Size size(5, 5); | 39 static gfx::Size size(5, 5); |
| 40 return size; | 40 return size; |
| 41 } | 41 } |
| 42 | 42 |
| 43 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { | 43 class EmptySurfaceFactoryClient : public SurfaceFactoryClient { |
| 44 public: | 44 public: |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 returned_ids[i] = client.returned_resources()[i].id; | 876 returned_ids[i] = client.returned_resources()[i].id; |
| 877 } | 877 } |
| 878 EXPECT_THAT(returned_ids, | 878 EXPECT_THAT(returned_ids, |
| 879 testing::WhenSorted(testing::ElementsAreArray(ids))); | 879 testing::WhenSorted(testing::ElementsAreArray(ids))); |
| 880 factory.Destroy(surface_id); | 880 factory.Destroy(surface_id); |
| 881 } | 881 } |
| 882 | 882 |
| 883 } // namespace | 883 } // namespace |
| 884 } // namespace cc | 884 } // namespace cc |
| 885 | 885 |
| OLD | NEW |