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

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

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: none 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
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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(0, 24)); 593 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(0, 24));
594 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(49, 24)); 594 EXPECT_EQ(SK_ColorGREEN, bitmap.getColor(49, 24));
595 for (int x = 0; x < 49; ++x) 595 for (int x = 0; x < 49; ++x)
596 EXPECT_EQ(SK_ColorRED, bitmap.getColor(x, 12)); 596 EXPECT_EQ(SK_ColorRED, bitmap.getColor(x, 12));
597 for (int y = 0; y < 24; ++y) 597 for (int y = 0; y < 24; ++y)
598 EXPECT_EQ(SK_ColorRED, bitmap.getColor(24, y)); 598 EXPECT_EQ(SK_ColorRED, bitmap.getColor(24, y));
599 } 599 }
600 600
601 } // namespace 601 } // namespace
602 } // namespace cc 602 } // namespace cc
OLDNEW
« cc/BUILD.gn ('K') | « 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