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

Side by Side Diff: cc/playback/discardable_image_map_unittest.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 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
« no previous file with comments | « cc/playback/discardable_image_map.cc ('k') | cc/playback/display_item.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/discardable_image_map.h" 5 #include "cc/playback/discardable_image_map.h"
6 6
7 #include <stddef.h>
8
7 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 11 #include "base/values.h"
10 #include "cc/base/region.h" 12 #include "cc/base/region.h"
11 #include "cc/test/fake_content_layer_client.h" 13 #include "cc/test/fake_content_layer_client.h"
12 #include "cc/test/fake_display_list_recording_source.h" 14 #include "cc/test/fake_display_list_recording_source.h"
13 #include "cc/test/skia_common.h" 15 #include "cc/test/skia_common.h"
14 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/skia/include/core/SkGraphics.h" 17 #include "third_party/skia/include/core/SkGraphics.h"
16 #include "third_party/skia/include/core/SkImageGenerator.h" 18 #include "third_party/skia/include/core/SkImageGenerator.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 display_list->Raster(generator.canvas(), nullptr, visible_rect, 1.f); 318 display_list->Raster(generator.canvas(), nullptr, visible_rect, 1.f);
317 } 319 }
318 std::vector<PositionDrawImage> images = 320 std::vector<PositionDrawImage> images =
319 GetDiscardableImagesInRect(image_map, gfx::Rect(0, 0, 1, 1)); 321 GetDiscardableImagesInRect(image_map, gfx::Rect(0, 0, 1, 1));
320 EXPECT_EQ(1u, images.size()); 322 EXPECT_EQ(1u, images.size());
321 EXPECT_TRUE(images[0].image == discardable_image.get()); 323 EXPECT_TRUE(images[0].image == discardable_image.get());
322 EXPECT_EQ(gfx::Rect(0, 0, 1 << 25, 1 << 25), images[0].image_rect); 324 EXPECT_EQ(gfx::Rect(0, 0, 1 << 25, 1 << 25), images[0].image_rect);
323 } 325 }
324 326
325 } // namespace cc 327 } // namespace cc
OLDNEW
« no previous file with comments | « cc/playback/discardable_image_map.cc ('k') | cc/playback/display_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698