OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test/pixel_test.h" | 5 #include "cc/test/pixel_test.h" |
6 | 6 |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "cc/compositor_frame_metadata.h" | 8 #include "cc/output/compositor_frame_metadata.h" |
9 #include "cc/gl_renderer.h" | 9 #include "cc/output/gl_renderer.h" |
10 #include "cc/output_surface.h" | 10 #include "cc/output/output_surface.h" |
11 #include "cc/resource_provider.h" | 11 #include "cc/resource_provider.h" |
12 #include "cc/test/paths.h" | 12 #include "cc/test/paths.h" |
13 #include "cc/test/pixel_test_utils.h" | 13 #include "cc/test/pixel_test_utils.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
16 #include "webkit/gpu/context_provider_in_process.h" | 16 #include "webkit/gpu/context_provider_in_process.h" |
17 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" | 17 #include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 | 20 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 if (!PathService::Get(cc::DIR_TEST_DATA, &test_data_dir)) | 91 if (!PathService::Get(cc::DIR_TEST_DATA, &test_data_dir)) |
92 return false; | 92 return false; |
93 | 93 |
94 // To rebaseline: | 94 // To rebaseline: |
95 //return WritePNGFile(bitmap, test_data_dir.Append(ref_file)); | 95 //return WritePNGFile(bitmap, test_data_dir.Append(ref_file)); |
96 | 96 |
97 return IsSameAsPNGFile(bitmap, test_data_dir.Append(ref_file)); | 97 return IsSameAsPNGFile(bitmap, test_data_dir.Append(ref_file)); |
98 } | 98 } |
99 | 99 |
100 } // namespace cc | 100 } // namespace cc |
OLD | NEW |