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

Side by Side Diff: cc/layers/content_layer_unittest.cc

Issue 13245007: cc: Remove RenderingStats passed to ContentLayerUpdater during Layer::Update() (Closed) Base URL: http://git.chromium.org/chromium/src.git@three
Patch Set: Rebase to 208926 Created 7 years, 5 months 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
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer.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/layers/content_layer.h" 5 #include "cc/layers/content_layer.h"
6 6
7 #include "cc/layers/content_layer_client.h" 7 #include "cc/layers/content_layer_client.h"
8 #include "cc/resources/bitmap_content_layer_updater.h" 8 #include "cc/resources/bitmap_content_layer_updater.h"
9 #include "cc/test/fake_rendering_stats_instrumentation.h" 9 #include "cc/test/fake_rendering_stats_instrumentation.h"
10 #include "cc/test/geometry_test_utils.h" 10 #include "cc/test/geometry_test_utils.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 BitmapContentLayerUpdater::Create( 43 BitmapContentLayerUpdater::Create(
44 ContentLayerPainter::Create(&client).PassAs<LayerPainter>(), 44 ContentLayerPainter::Create(&client).PassAs<LayerPainter>(),
45 &stats_instrumentation, 45 &stats_instrumentation,
46 0); 46 0);
47 47
48 gfx::Rect resulting_opaque_rect; 48 gfx::Rect resulting_opaque_rect;
49 updater->PrepareToUpdate(content_rect, 49 updater->PrepareToUpdate(content_rect,
50 gfx::Size(256, 256), 50 gfx::Size(256, 256),
51 contents_scale, 51 contents_scale,
52 contents_scale, 52 contents_scale,
53 &resulting_opaque_rect, 53 &resulting_opaque_rect);
54 NULL);
55 54
56 EXPECT_EQ(opaque_rect_in_content_space.ToString(), 55 EXPECT_EQ(opaque_rect_in_content_space.ToString(),
57 resulting_opaque_rect.ToString()); 56 resulting_opaque_rect.ToString());
58 } 57 }
59 58
60 } // namespace 59 } // namespace
61 } // namespace cc 60 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698