Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: cc/gl_renderer_pixeltest.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor input event changes Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« cc/gl_renderer.h ('K') | « cc/gl_renderer.cc ('k') | cc/gl_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698