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

Side by Side Diff: cc/resources/picture_unittest.cc

Issue 225023031: Hack SkRecord in as an alternate recording mode in cc/resources/picture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 6 years, 7 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/resources/picture.cc ('k') | skia/skia_library.gypi » ('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 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
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
OLDNEW
« no previous file with comments | « cc/resources/picture.cc ('k') | skia/skia_library.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698