@@ -81,7 +81,8 @@ TEST_F(TargetPainterTest, Paint)
81
81
Texture texture (refFbo.texture (), refFbo.size ());
82
82
std::unordered_map<ShaderManager::Effect, double > effects;
83
83
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 ()));
85
86
EXPECT_CALL (target, graphicEffects ()).WillOnce (ReturnRef (effects));
86
87
targetPainter.paint (&painter);
87
88
painter.endFrame ();
@@ -96,7 +97,8 @@ TEST_F(TargetPainterTest, Paint)
96
97
effects[ShaderManager::Effect::Brightness] = 20 ;
97
98
effects[ShaderManager::Effect::Ghost] = 84 ;
98
99
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 ()));
100
102
EXPECT_CALL (target, graphicEffects ()).WillOnce (ReturnRef (effects));
101
103
targetPainter.paint (&painter);
102
104
painter.endFrame ();
@@ -114,7 +116,8 @@ TEST_F(TargetPainterTest, Paint)
114
116
effects[ShaderManager::Effect::Pixelate] = 25 ;
115
117
effects[ShaderManager::Effect::Mosaic] = 30 ;
116
118
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 ()));
118
121
EXPECT_CALL (target, graphicEffects ()).WillOnce (ReturnRef (effects));
119
122
targetPainter.paint (&painter);
120
123
painter.endFrame ();
0 commit comments