mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
Parallel picture loader (#5977)
* Parallelize picture loader. * Queue requests instead. * Include a status bar for the picture loader. * Save redirect cache on destruction. * Address comments. * Let's not overwrite an ambigious variable name. * Lint. * Oracle needs the status bar too. * We actually get a free request if we hit a cached image. * Fix cmake list. * toString() the url. --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
9af3fbc35f
commit
fe57efb1a8
16 changed files with 596 additions and 350 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define PICTURELOADER_H
|
||||
|
||||
#include "../../../game/cards/card_info.h"
|
||||
#include "picture_loader_status_bar.h"
|
||||
#include "picture_loader_worker.h"
|
||||
|
||||
#include <QLoggingCategory>
|
||||
|
|
@ -27,6 +28,7 @@ private:
|
|||
void operator=(PictureLoader const &);
|
||||
|
||||
PictureLoaderWorker *worker;
|
||||
PictureLoaderStatusBar *statusBar;
|
||||
|
||||
public:
|
||||
static void getPixmap(QPixmap &pixmap, CardInfoPtr card, QSize size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue