66
77#include " flutter/fml/paths.h"
88#include " flutter/testing/testing.h"
9+ #include " impeller/base/validation.h"
910#include " impeller/image/compressed_image.h"
1011#include " impeller/playground/playground.h"
1112#include " impeller/renderer/allocator.h"
@@ -140,7 +141,7 @@ static void PlaygroundKeyCallback(GLFWwindow* window,
140141 auto current_drawable = [layer nextDrawable ];
141142
142143 if (!current_drawable) {
143- FML_LOG (ERROR) << " Could not acquire current drawable." ;
144+ VALIDATION_LOG << " Could not acquire current drawable." ;
144145 return false ;
145146 }
146147
@@ -207,7 +208,7 @@ static void PlaygroundKeyCallback(GLFWwindow* window,
207208 };
208209
209210 if (!renderer_.Render (surface, wrapped_callback)) {
210- FML_LOG (ERROR) << " Could not render into the surface." ;
211+ VALIDATION_LOG << " Could not render into the surface." ;
211212 return false ;
212213 }
213214
@@ -228,7 +229,7 @@ CompressedImage compressed_image(
228229 // simplicity.
229230 auto image = compressed_image.Decode ().ConvertToRGBA ();
230231 if (!image.IsValid ()) {
231- FML_LOG (ERROR) << " Could not find fixture named " << fixture_name;
232+ VALIDATION_LOG << " Could not find fixture named " << fixture_name;
232233 return nullptr ;
233234 }
234235
@@ -241,15 +242,15 @@ CompressedImage compressed_image(
241242 renderer_.GetContext ()->GetPermanentsAllocator ()->CreateTexture (
242243 StorageMode::kHostVisible , texture_descriptor);
243244 if (!texture) {
244- FML_LOG (ERROR) << " Could not allocate texture for fixture " << fixture_name;
245+ VALIDATION_LOG << " Could not allocate texture for fixture " << fixture_name;
245246 return nullptr ;
246247 }
247248 texture->SetLabel (fixture_name);
248249
249250 auto uploaded = texture->SetContents (image.GetAllocation ()->GetMapping (),
250251 image.GetAllocation ()->GetSize ());
251252 if (!uploaded) {
252- FML_LOG (ERROR) << " Could not upload texture to device memory for fixture "
253+ VALIDATION_LOG << " Could not upload texture to device memory for fixture "
253254 << fixture_name;
254255 return nullptr ;
255256 }
0 commit comments