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

Side by Side Diff: cc/layer_tree_host_perftest.cc

Issue 11348371: cc: Move WebCompositorOutputSurface and related classes into cc/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forlanding6 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
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/layer_tree_host.h" 5 #include "cc/layer_tree_host.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
11 #include "base/string_piece.h" 11 #include "base/string_piece.h"
12 #include "cc/content_layer.h" 12 #include "cc/content_layer.h"
13 #include "cc/nine_patch_layer.h" 13 #include "cc/nine_patch_layer.h"
14 #include "cc/solid_color_layer.h" 14 #include "cc/solid_color_layer.h"
15 #include "cc/test/fake_content_layer_client.h" 15 #include "cc/test/fake_content_layer_client.h"
16 #include "cc/test/layer_tree_test_common.h" 16 #include "cc/test/layer_tree_test_common.h"
17 #include "cc/test/paths.h" 17 #include "cc/test/paths.h"
18 18
19 namespace cc { 19 namespace cc {
20 namespace { 20 namespace {
21 21
22 static const int kTimeLimitMillis = 2000; 22 static const int kTimeLimitMillis = 2000;
23 23
24 class LayerTreeHostPerfTest : public WebKitTests::ThreadedTest { 24 class LayerTreeHostPerfTest : public ThreadedTest {
25 public: 25 public:
26 LayerTreeHostPerfTest() 26 LayerTreeHostPerfTest()
27 : num_draws_(0) { 27 : num_draws_(0) {
28 fake_delegate_.setPaintAllOpaque(true); 28 fake_delegate_.setPaintAllOpaque(true);
29 } 29 }
30 30
31 virtual void beginTest() OVERRIDE { 31 virtual void beginTest() OVERRIDE {
32 buildTree(); 32 buildTree();
33 start_time_ = base::TimeTicks::HighResNow(); 33 start_time_ = base::TimeTicks::HighResNow();
34 postSetNeedsCommitToMainThread(); 34 postSetNeedsCommitToMainThread();
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 scoped_ptr<base::Value> tree_; 317 scoped_ptr<base::Value> tree_;
318 }; 318 };
319 319
320 TEST_F(LayerTreeHostPerfTestJsonReader, tenTenSingleThread) { 320 TEST_F(LayerTreeHostPerfTestJsonReader, tenTenSingleThread) {
321 readTestFile("10_10_layer_tree"); 321 readTestFile("10_10_layer_tree");
322 runTest(false); 322 runTest(false);
323 } 323 }
324 324
325 } // namespace 325 } // namespace
326 } // namespace cc 326 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698