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 "base/file_util.h" | 5 #include "base/file_util.h" |
6 #include "cc/quads/render_pass.h" | 6 #include "cc/quads/render_pass.h" |
7 #include "cc/test/pixel_comparator.h" | 7 #include "cc/test/pixel_comparator.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 #include "ui/gfx/size.h" | 9 #include "ui/gfx/size.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 gfx::Size device_viewport_size_; | 30 gfx::Size device_viewport_size_; |
31 scoped_ptr<OutputSurface> output_surface_; | 31 scoped_ptr<OutputSurface> output_surface_; |
32 scoped_ptr<ResourceProvider> resource_provider_; | 32 scoped_ptr<ResourceProvider> resource_provider_; |
33 class PixelTestRendererClient; | 33 class PixelTestRendererClient; |
34 scoped_ptr<PixelTestRendererClient> fake_client_; | 34 scoped_ptr<PixelTestRendererClient> fake_client_; |
35 scoped_ptr<GLRenderer> renderer_; | 35 scoped_ptr<GLRenderer> renderer_; |
36 scoped_ptr<SkBitmap> result_bitmap_; | 36 scoped_ptr<SkBitmap> result_bitmap_; |
37 | 37 |
38 private: | 38 private: |
39 void ReadbackResult(scoped_ptr<SkBitmap> bitmap); | 39 void ReadbackResult(base::Closure quit_run_loop, scoped_ptr<SkBitmap> bitmap); |
40 | 40 |
41 bool PixelsMatchReference(const base::FilePath& ref_file, | 41 bool PixelsMatchReference(const base::FilePath& ref_file, |
42 const PixelComparator& comparator); | 42 const PixelComparator& comparator); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace cc | 45 } // namespace cc |
46 | 46 |
47 #endif // CC_TEST_PIXEL_TEST_H_ | 47 #endif // CC_TEST_PIXEL_TEST_H_ |
OLD | NEW |