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

Side by Side Diff: cc/tiles/software_image_decode_cache_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/tiles/software_image_decode_cache_perftest.cc ('k') | cc/tiles/tile_manager.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/tiles/software_image_decode_cache.h" 5 #include "cc/tiles/software_image_decode_cache.h"
6 6
7 #include "cc/playback/draw_image.h" 7 #include "cc/paint/draw_image.h"
8 #include "cc/resources/resource_format.h" 8 #include "cc/resources/resource_format.h"
9 #include "cc/test/test_tile_task_runner.h" 9 #include "cc/test/test_tile_task_runner.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/skia/include/core/SkRefCnt.h" 11 #include "third_party/skia/include/core/SkRefCnt.h"
12 12
13 namespace cc { 13 namespace cc {
14 namespace { 14 namespace {
15 15
16 size_t kLockedMemoryLimitBytes = 128 * 1024 * 1024; 16 size_t kLockedMemoryLimitBytes = 128 * 1024 * 1024;
17 class TestSoftwareImageDecodeCache : public SoftwareImageDecodeCache { 17 class TestSoftwareImageDecodeCache : public SoftwareImageDecodeCache {
(...skipping 1423 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 EXPECT_EQ(decoded_draw_image_50.image(), decoded_draw_image_49.image()); 1441 EXPECT_EQ(decoded_draw_image_50.image(), decoded_draw_image_49.image());
1442 1442
1443 cache.DrawWithImageFinished(draw_image_50, decoded_draw_image_50); 1443 cache.DrawWithImageFinished(draw_image_50, decoded_draw_image_50);
1444 cache.UnrefImage(draw_image_50); 1444 cache.UnrefImage(draw_image_50);
1445 cache.DrawWithImageFinished(draw_image_49, decoded_draw_image_49); 1445 cache.DrawWithImageFinished(draw_image_49, decoded_draw_image_49);
1446 cache.UnrefImage(draw_image_49); 1446 cache.UnrefImage(draw_image_49);
1447 } 1447 }
1448 1448
1449 } // namespace 1449 } // namespace
1450 } // namespace cc 1450 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/software_image_decode_cache_perftest.cc ('k') | cc/tiles/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698