@@ -81,7 +81,8 @@ TEST_F(TargetPainterTest, Paint)
8181 Texture texture (refFbo.texture (), refFbo.size ());
8282 std::unordered_map<ShaderManager::Effect, double > effects;
8383 EXPECT_CALL (target, texture ()).WillOnce (Return (texture));
84- EXPECT_CALL (target, cpuTexture ()).WillOnce (ReturnRef (texture));
84+ EXPECT_CALL (target, costumeWidth ()).WillOnce (Return (texture.width ()));
85+ EXPECT_CALL (target, costumeHeight ()).WillOnce (Return (texture.height ()));
8586 EXPECT_CALL (target, graphicEffects ()).WillOnce (ReturnRef (effects));
8687 targetPainter.paint (&painter);
8788 painter.endFrame ();
@@ -96,7 +97,8 @@ TEST_F(TargetPainterTest, Paint)
9697 effects[ShaderManager::Effect::Brightness] = 20 ;
9798 effects[ShaderManager::Effect::Ghost] = 84 ;
9899 EXPECT_CALL (target, texture ()).WillOnce (Return (texture));
99- EXPECT_CALL (target, cpuTexture ()).WillOnce (ReturnRef (texture));
100+ EXPECT_CALL (target, costumeWidth ()).WillOnce (Return (texture.width ()));
101+ EXPECT_CALL (target, costumeHeight ()).WillOnce (Return (texture.height ()));
100102 EXPECT_CALL (target, graphicEffects ()).WillOnce (ReturnRef (effects));
101103 targetPainter.paint (&painter);
102104 painter.endFrame ();
@@ -114,7 +116,8 @@ TEST_F(TargetPainterTest, Paint)
114116 effects[ShaderManager::Effect::Pixelate] = 25 ;
115117 effects[ShaderManager::Effect::Mosaic] = 30 ;
116118 EXPECT_CALL (target, texture ()).WillOnce (Return (texture));
117- EXPECT_CALL (target, cpuTexture ()).WillOnce (ReturnRef (texture));
119+ EXPECT_CALL (target, costumeWidth ()).WillOnce (Return (texture.width ()));
120+ EXPECT_CALL (target, costumeHeight ()).WillOnce (Return (texture.height ()));
118121 EXPECT_CALL (target, graphicEffects ()).WillOnce (ReturnRef (effects));
119122 targetPainter.paint (&painter);
120123 painter.endFrame ();
0 commit comments