Win bg fg buffer (#4)
* better frame available Signed-off-by: fufesou <shuanglongchen@yeah.net> * fix win, bg fg buffers Signed-off-by: fufesou <shuanglongchen@yeah.net> * swap -1 Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
749acc2f87
commit
69a51033bf
3 changed files with 41 additions and 23 deletions
|
|
@ -22,13 +22,12 @@ private:
|
|||
flutter::TextureRegistrar* texture_registrar_ = nullptr;
|
||||
std::unique_ptr<flutter::TextureVariant> texture_ = nullptr;
|
||||
int64_t texture_id_;
|
||||
mutable std::mutex mutex_;
|
||||
int last_fg_index_ = 0;
|
||||
std::mutex mutex_;
|
||||
int fg_index_ = 0;
|
||||
size_t width_[2] = {0, 0};
|
||||
size_t height_[2] = {0, 0};
|
||||
bool buff_ready_ = false;
|
||||
size_t width_[2];
|
||||
size_t height_[2];
|
||||
std::vector<uint8_t> buffer_tmp_[2];
|
||||
Timer timer_;
|
||||
};
|
||||
|
||||
#endif // TEXTURE_RGBA_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue