OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/gl_renderer.h" | 5 #include "cc/gl_renderer.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "cc/draw_quad.h" | 9 #include "cc/draw_quad.h" |
10 #include "cc/prioritized_resource_manager.h" | 10 #include "cc/prioritized_resource_manager.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 static LayerTreeSettings fake_settings; | 34 static LayerTreeSettings fake_settings; |
35 return fake_settings; | 35 return fake_settings; |
36 } | 36 } |
37 virtual void didLoseOutputSurface() OVERRIDE { } | 37 virtual void didLoseOutputSurface() OVERRIDE { } |
38 virtual void onSwapBuffersComplete() OVERRIDE { } | 38 virtual void onSwapBuffersComplete() OVERRIDE { } |
39 virtual void setFullRootLayerDamage() OVERRIDE { } | 39 virtual void setFullRootLayerDamage() OVERRIDE { } |
40 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy&) OVERRIDE {} | 40 virtual void setManagedMemoryPolicy(const ManagedMemoryPolicy&) OVERRIDE {} |
41 virtual void enforceManagedMemoryPolicy( | 41 virtual void enforceManagedMemoryPolicy( |
42 const ManagedMemoryPolicy&) OVERRIDE {} | 42 const ManagedMemoryPolicy&) OVERRIDE {} |
43 virtual bool hasImplThread() const OVERRIDE { return false; } | 43 virtual bool hasImplThread() const OVERRIDE { return false; } |
| 44 virtual void onReceivedLatencyInfo( |
| 45 const WebKit::WebLatencyInfoImpl&) OVERRIDE { } |
44 }; | 46 }; |
45 | 47 |
46 | 48 |
47 class GLRendererPixelTest : public testing::Test { | 49 class GLRendererPixelTest : public testing::Test { |
48 protected: | 50 protected: |
49 GLRendererPixelTest() {} | 51 GLRendererPixelTest() {} |
50 | 52 |
51 virtual void SetUp() { | 53 virtual void SetUp() { |
52 gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL); | 54 gfx::InitializeGLBindings(gfx::kGLImplementationOSMesaGL); |
53 output_surface_ = PixelTestOutputSurface::create(); | 55 output_surface_ = PixelTestOutputSurface::create(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 FilePath test_data_dir; | 109 FilePath test_data_dir; |
108 ASSERT_TRUE(PathService::Get(cc::test::DIR_TEST_DATA, &test_data_dir)); | 110 ASSERT_TRUE(PathService::Get(cc::test::DIR_TEST_DATA, &test_data_dir)); |
109 // test::WritePNGFile(bitmap, test_data_dir.AppendASCII("green.png")); | 111 // test::WritePNGFile(bitmap, test_data_dir.AppendASCII("green.png")); |
110 EXPECT_TRUE(test::IsSameAsPNGFile(bitmap, | 112 EXPECT_TRUE(test::IsSameAsPNGFile(bitmap, |
111 test_data_dir.AppendASCII("green.png"))); | 113 test_data_dir.AppendASCII("green.png"))); |
112 } | 114 } |
113 #endif | 115 #endif |
114 | 116 |
115 } // namespace | 117 } // namespace |
116 } // namespace cc | 118 } // namespace cc |
OLD | NEW |