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

Unified Diff: cc/layers/picture_image_layer_unittest.cc

Issue 1101823002: CC Animations: Make LayerAnimationController creation optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumb LayerSettings parameter for cc::Layer construction. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/layers/picture_image_layer_unittest.cc
diff --git a/cc/layers/picture_image_layer_unittest.cc b/cc/layers/picture_image_layer_unittest.cc
index cd95c9fde0b69840bdde477ae695be1df29118f3..a46827d4e362f1b4246eeee14a4ff98d71990059 100644
--- a/cc/layers/picture_image_layer_unittest.cc
+++ b/cc/layers/picture_image_layer_unittest.cc
@@ -6,6 +6,7 @@
#include "cc/resources/display_item.h"
#include "cc/test/skia_common.h"
+#include "cc/trees/layer_tree_settings.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
@@ -15,7 +16,8 @@ namespace cc {
namespace {
TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
- scoped_refptr<PictureImageLayer> layer = PictureImageLayer::Create();
+ scoped_refptr<PictureImageLayer> layer =
+ PictureImageLayer::Create(LayerSettings());
gfx::Rect layer_rect(200, 200);
SkBitmap image_bitmap;
@@ -46,7 +48,8 @@ TEST(PictureImageLayerTest, PaintContentsToDisplayList) {
}
TEST(PictureImageLayerTest, PaintContentsToCachedDisplayList) {
- scoped_refptr<PictureImageLayer> layer = PictureImageLayer::Create();
+ scoped_refptr<PictureImageLayer> layer =
+ PictureImageLayer::Create(LayerSettings());
gfx::Rect layer_rect(200, 200);
SkBitmap image_bitmap;

Powered by Google App Engine
This is Rietveld 408576698