Documentation
¶
Index ¶
- func NewTextureCompressor() handler.Handler
- type TextureCompressor
- func (cc *TextureCompressor) CanExecuteWithLocalIdleResource(command []string) bool
- func (tc *TextureCompressor) FinalExecute([]string)
- func (tc *TextureCompressor) GetFilterRules() ([]dcSDK.FilterRuleItem, error)
- func (tc *TextureCompressor) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)
- func (tc *TextureCompressor) InitExtra(extra []byte)
- func (tc *TextureCompressor) InitSandbox(sandbox *dcSyscall.Sandbox)
- func (tc *TextureCompressor) LocalExecute(command []string) dcType.BKDistCommonError
- func (tc *TextureCompressor) LocalExecuteNeed(command []string) bool
- func (tc *TextureCompressor) LocalLockWeight(command []string) int32
- func (tc *TextureCompressor) NeedRemoteResource(command []string) bool
- func (tc *TextureCompressor) NeedRetryOnRemoteFail(command []string) bool
- func (tc *TextureCompressor) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
- func (tc *TextureCompressor) PostExecute(r *dcSDK.BKDistResult) dcType.BKDistCommonError
- func (tc *TextureCompressor) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool
- func (tc *TextureCompressor) PostLockWeight(result *dcSDK.BKDistResult) int32
- func (tc *TextureCompressor) PostWork(config *dcType.BoosterConfig) error
- func (tc *TextureCompressor) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
- func (tc *TextureCompressor) PreExecuteNeedLock(command []string) bool
- func (tc *TextureCompressor) PreLockWeight(command []string) int32
- func (tc *TextureCompressor) PreWork(config *dcType.BoosterConfig) error
- func (tc *TextureCompressor) RemoteRetryTimes() int
- func (tc *TextureCompressor) RenderArgs(config dcType.BoosterConfig, originArgs string) string
- func (tc *TextureCompressor) ResultExtra() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTextureCompressor ¶
NewTextureCompressor get a new tc handler
Types ¶
type TextureCompressor ¶
type TextureCompressor struct {
// contains filtered or unexported fields
}
TextureCompressor describe the handler to handle texture compress in unity3d
func (*TextureCompressor) CanExecuteWithLocalIdleResource ¶
func (cc *TextureCompressor) CanExecuteWithLocalIdleResource(command []string) bool
func (*TextureCompressor) FinalExecute ¶
func (tc *TextureCompressor) FinalExecute([]string)
FinalExecute no need
func (*TextureCompressor) GetFilterRules ¶
func (tc *TextureCompressor) GetFilterRules() ([]dcSDK.FilterRuleItem, error)
GetFilterRules no need
func (*TextureCompressor) GetPreloadConfig ¶
func (tc *TextureCompressor) GetPreloadConfig(config dcType.BoosterConfig) (*dcSDK.PreloadConfig, error)
GetPreloadConfig no need
func (*TextureCompressor) InitExtra ¶
func (tc *TextureCompressor) InitExtra(extra []byte)
InitExtra no need
func (*TextureCompressor) InitSandbox ¶
func (tc *TextureCompressor) InitSandbox(sandbox *dcSyscall.Sandbox)
InitSandbox init sandbox
func (*TextureCompressor) LocalExecute ¶
func (tc *TextureCompressor) LocalExecute(command []string) dcType.BKDistCommonError
LocalExecute no need
func (*TextureCompressor) LocalExecuteNeed ¶
func (tc *TextureCompressor) LocalExecuteNeed(command []string) bool
LocalExecuteNeed no need
func (*TextureCompressor) LocalLockWeight ¶
func (tc *TextureCompressor) LocalLockWeight(command []string) int32
LocalLockWeight decide local-execute lock weight, default 1
func (*TextureCompressor) NeedRemoteResource ¶
func (tc *TextureCompressor) NeedRemoteResource(command []string) bool
NeedRemoteResource check whether this command need remote resource
func (*TextureCompressor) NeedRetryOnRemoteFail ¶
func (tc *TextureCompressor) NeedRetryOnRemoteFail(command []string) bool
NeedRetryOnRemoteFail check whether need retry on remote fail
func (*TextureCompressor) OnRemoteFail ¶
func (tc *TextureCompressor) OnRemoteFail(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
OnRemoteFail give chance to try other way if failed to remote execute
func (*TextureCompressor) PostExecute ¶
func (tc *TextureCompressor) PostExecute(r *dcSDK.BKDistResult) dcType.BKDistCommonError
PostExecute judge the result
func (*TextureCompressor) PostExecuteNeedLock ¶
func (tc *TextureCompressor) PostExecuteNeedLock(result *dcSDK.BKDistResult) bool
PostExecuteNeedLock no need
func (*TextureCompressor) PostLockWeight ¶
func (tc *TextureCompressor) PostLockWeight(result *dcSDK.BKDistResult) int32
PostLockWeight decide post-execute lock weight, default 1
func (*TextureCompressor) PostWork ¶
func (tc *TextureCompressor) PostWork(config *dcType.BoosterConfig) error
PostWork no need
func (*TextureCompressor) PreExecute ¶
func (tc *TextureCompressor) PreExecute(command []string) (*dcSDK.BKDistCommand, dcType.BKDistCommonError)
PreExecute parse the input and output file, and then just run the origin command in remote
func (*TextureCompressor) PreExecuteNeedLock ¶
func (tc *TextureCompressor) PreExecuteNeedLock(command []string) bool
PreExecuteNeedLock no need
func (*TextureCompressor) PreLockWeight ¶
func (tc *TextureCompressor) PreLockWeight(command []string) int32
PreLockWeight decide pre-execute lock weight, default 1
func (*TextureCompressor) PreWork ¶
func (tc *TextureCompressor) PreWork(config *dcType.BoosterConfig) error
PreWork no need
func (*TextureCompressor) RemoteRetryTimes ¶
func (tc *TextureCompressor) RemoteRetryTimes() int
RemoteRetryTimes will return the remote retry times
func (*TextureCompressor) RenderArgs ¶
func (tc *TextureCompressor) RenderArgs(config dcType.BoosterConfig, originArgs string) string
RenderArgs no need change
func (*TextureCompressor) ResultExtra ¶
func (tc *TextureCompressor) ResultExtra() []byte
ResultExtra no need