| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |