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

Side by Side Diff: cc/software_renderer_unittest.cc

Issue 11361223: cc: Remove cc::settings, move them to LayerTreeSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-unittests Created 8 years, 1 month 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/settings.cc ('k') | cc/test/layer_tree_test_common.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/software_renderer.h" 5 #include "cc/software_renderer.h"
6 6
7 #include "cc/quad_sink.h" 7 #include "cc/quad_sink.h"
8 #include "cc/render_pass.h" 8 #include "cc/render_pass.h"
9 #include "cc/render_pass_draw_quad.h" 9 #include "cc/render_pass_draw_quad.h"
10 #include "cc/settings.h"
11 #include "cc/solid_color_draw_quad.h" 10 #include "cc/solid_color_draw_quad.h"
12 #include "cc/test/animation_test_common.h" 11 #include "cc/test/animation_test_common.h"
13 #include "cc/test/fake_web_compositor_output_surface.h" 12 #include "cc/test/fake_web_compositor_output_surface.h"
14 #include "cc/test/fake_web_compositor_software_output_device.h" 13 #include "cc/test/fake_web_compositor_software_output_device.h"
15 #include "cc/test/geometry_test_utils.h" 14 #include "cc/test/geometry_test_utils.h"
16 #include "cc/test/render_pass_test_common.h" 15 #include "cc/test/render_pass_test_common.h"
17 #include "cc/test/test_common.h"
18 #include "cc/tile_draw_quad.h" 16 #include "cc/tile_draw_quad.h"
19 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
20 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
21 19
22 using namespace WebKit; 20 using namespace WebKit;
23 using namespace WebKitTests; 21 using namespace WebKitTests;
24 22
25 namespace cc { 23 namespace cc {
26 namespace { 24 namespace {
27 25
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 renderer()->getFramebufferPixels(pixels.get(), outerRect); 141 renderer()->getFramebufferPixels(pixels.get(), outerRect);
144 142
145 EXPECT_EQ(SK_ColorYELLOW, pixels[0]); 143 EXPECT_EQ(SK_ColorYELLOW, pixels[0]);
146 EXPECT_EQ(SK_ColorYELLOW, pixels[outerPixels - 1]); 144 EXPECT_EQ(SK_ColorYELLOW, pixels[outerPixels - 1]);
147 EXPECT_EQ(SK_ColorCYAN, pixels[outerSize.width() + 1]); 145 EXPECT_EQ(SK_ColorCYAN, pixels[outerSize.width() + 1]);
148 EXPECT_EQ(SK_ColorCYAN, pixels[outerPixels - outerSize.width() - 2]); 146 EXPECT_EQ(SK_ColorCYAN, pixels[outerPixels - outerSize.width() - 2]);
149 } 147 }
150 148
151 } // namespace 149 } // namespace
152 } // namespace cc 150 } // namespace cc
OLDNEW
« no previous file with comments | « cc/settings.cc ('k') | cc/test/layer_tree_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698