mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 14:31:12 +08:00
1 parent
ee3fd02a0a
commit
64f9ec4241
87 files changed
+2693
-2289
No files matched your search
@@ -18,6 +18,8 @@ import (
|
||||
"container/list"
|
||||
"image"
|
||||
"reflect"
|
||||
|
||||
baseimage "github.com/xiaoqidun/ofdgo/internal/base/image"
|
||||
)
|
||||
|
||||
// renderCache 按估算字节数限制派生渲染数据,淘汰不修改源资源
|
||||
@@ -113,7 +115,7 @@ func rasterCommandsCost(commands []RasterCommand, limit int) int {
|
||||
}
|
||||
images[command.Image] = true
|
||||
}
|
||||
part = imageResourceCost(command.Image, limit-cost)
|
||||
part = baseimage.StorageCost(command.Image, limit-cost)
|
||||
if part > limit-cost {
|
||||
return limit + 1
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user