OLD | NEW |
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/resources/picture.h" | 5 #include "cc/resources/picture.h" |
6 | 6 |
7 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/test/fake_content_layer_client.h" | 10 #include "cc/test/fake_content_layer_client.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 476 |
477 picture = Picture::Create(layer_rect, | 477 picture = Picture::Create(layer_rect, |
478 &content_layer_client, | 478 &content_layer_client, |
479 tile_grid_info, | 479 tile_grid_info, |
480 false, | 480 false, |
481 0, | 481 0, |
482 Picture::RECORD_WITH_PAINTING_DISABLED); | 482 Picture::RECORD_WITH_PAINTING_DISABLED); |
483 EXPECT_EQ(NULL, content_layer_client.last_canvas()); | 483 EXPECT_EQ(NULL, content_layer_client.last_canvas()); |
484 EXPECT_TRUE(picture); | 484 EXPECT_TRUE(picture); |
485 | 485 |
486 EXPECT_EQ(3, Picture::RECORDING_MODE_COUNT); | 486 picture = Picture::Create(layer_rect, |
| 487 &content_layer_client, |
| 488 tile_grid_info, |
| 489 false, |
| 490 0, |
| 491 Picture::RECORD_WITH_SKRECORD); |
| 492 EXPECT_TRUE(content_layer_client.last_canvas() != NULL); |
| 493 EXPECT_TRUE(picture); |
| 494 |
| 495 EXPECT_EQ(4, Picture::RECORDING_MODE_COUNT); |
487 } | 496 } |
488 | 497 |
489 } // namespace | 498 } // namespace |
490 } // namespace cc | 499 } // namespace cc |
OLD | NEW |