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

Side by Side Diff: cc/raster/raster_source_unittest.cc

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint Created 3 years, 9 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 | « cc/raster/raster_source.cc ('k') | cc/raster/scoped_gpu_raster.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/playback/raster_source.h" 5 #include "cc/raster/raster_source.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "cc/test/fake_recording_source.h" 11 #include "cc/test/fake_recording_source.h"
12 #include "cc/test/skia_common.h" 12 #include "cc/test/skia_common.h"
13 #include "cc/tiles/software_image_decode_cache.h" 13 #include "cc/tiles/software_image_decode_cache.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/skia/include/core/SkPixelRef.h" 15 #include "third_party/skia/include/core/SkPixelRef.h"
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(0, 24)); 603 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(0, 24));
604 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(49, 24)); 604 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(49, 24));
605 for (int x = 0; x < 49; ++x) 605 for (int x = 0; x < 49; ++x)
606 EXPECT_EQ(SK_ColorRED, bitmap.getColor(x, 12)); 606 EXPECT_EQ(SK_ColorRED, bitmap.getColor(x, 12));
607 for (int y = 0; y < 24; ++y) 607 for (int y = 0; y < 24; ++y)
608 EXPECT_EQ(SK_ColorRED, bitmap.getColor(24, y)); 608 EXPECT_EQ(SK_ColorRED, bitmap.getColor(24, y));
609 } 609 }
610 610
611 } // namespace 611 } // namespace
612 } // namespace cc 612 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/raster_source.cc ('k') | cc/raster/scoped_gpu_raster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698