imageJob.setSkipRender(skipRender);
imageJob.setSkipRender(false);
@Override public ImageJobResult getImage(ImageJob imageJob) throws ShaderDispatchException, InterruptedException { // For running shaders locally, we write the necessary files to a temp directory, // run the get_image tool, and then collect the results in an ImageJobResult. // Due to strange Thrift behaviour, we set this default value explicitly // otherwise "isSetSkipRender()" is false. if (!imageJob.isSetSkipRender()) { imageJob.setSkipRender(false); } File localTempShaderJobFile = new File( tempDir, (imageJob.getName() != null ? imageJob.getName() + ".json" : "temp.json") ); try { return fileOps.runGetImageOnImageJob(imageJob, localTempShaderJobFile, usingSwiftShader); } catch (IOException exception) { throw new ShaderDispatchException(exception); } }
@Override public ImageJobResult getImage(ImageJob imageJob) throws ShaderDispatchException { LOGGER.info("Get image (via server) job: {}", imageJob.getName()); // Due to strange Thrift behaviour, we set this default value explicitly // otherwise "isSetSkipRender()" is false. if (!imageJob.isSetSkipRender()) { imageJob.setSkipRender(false); } // Optimisation: no need to actually use HTTP if we are on the server. if (fuzzerServiceManager != null) { try { return getImageHelper(imageJob, fuzzerServiceManager); } catch (TException exception) { throw new ShaderDispatchException(exception); } } else { try (CloseableHttpClient httpClient = HttpClients.createDefault()) { return getImageHelper(imageJob, getFuzzerServiceManagerProxy(httpClient)); } catch (IOException | TException exception) { throw new ShaderDispatchException(exception); } } }
unsetSkipRender(); } else { setSkipRender((java.lang.Boolean)value);