UI: Perf: Add batching capability to widgets.

Similiar to how we batch Icons together. This is not enabled in this
commit.
This commit is contained in:
2018-04-06 14:25:55 +02:00
parent fcb4aaf7a9
commit 21113ad834
2 changed files with 87 additions and 3 deletions

View File

@@ -1168,4 +1168,9 @@ void UI_tooltip_free(struct bContext *C, struct bScreen *sc, struct ARegion *ar)
int UI_calc_float_precision(int prec, double value);
/* widget batched drawing */
void UI_widgetbase_draw_cache_begin(void);
void UI_widgetbase_draw_cache_flush(void);
void UI_widgetbase_draw_cache_end(void);
#endif /* __UI_INTERFACE_H__ */