tree: 905716b3c8015bf71c38a1557d88727c4e9f67fa [path history] [tgz]
  1. builder.go
  2. builder_binary.go
  3. framebuffer_color.go
  4. framebuffer_depth.go
  5. hierarchy.go
  6. memory_info.go
  7. prerender_framebuffers.go
  8. README.md
  9. replace_atom.go
  10. requests.go
  11. state.go
  12. timing_info.go
builder/README.md

builder


import "android.googlesource.com/platform/tools/gpu/builder"

Package builder implements builders for resources from requests typically stored in the database, optionally depending on replay outputs.

Usage

func Captures

func Captures(db database.Database, logger log.Logger) (service.CaptureIdArray, error)

Captures returns all the captures stored by the database.

func ImportCapture

func ImportCapture(name string, atoms atom.List, db database.Database, logger log.Logger) (service.CaptureId, error)

ImportCapture builds a new capture containing atoms, stores it into db and returns the new capture identifier.

func New

func New() *builder

New creates a database.builder which can hold a replayManager, potentially required to build request outputs.

type GetFramebufferColor

type GetFramebufferColor struct {
	binary.Generate
	Device   service.DeviceId
	Capture  service.CaptureId
	API      service.ApiId
	After    atom.ID
	Settings service.RenderSettings
}

GetFramebufferColor records the parameters of a service.GetFramebufferColor RPC request.

func (*GetFramebufferColor) Class

func (*GetFramebufferColor) Class() binary.Class

type GetFramebufferDepth

type GetFramebufferDepth struct {
	binary.Generate
	Device  service.DeviceId
	Capture service.CaptureId
	API     service.ApiId
	After   atom.ID
}

GetFramebufferDepth records the parameters of a service.GetFramebufferDepth RPC request.

func (*GetFramebufferDepth) Class

func (*GetFramebufferDepth) Class() binary.Class

type GetHierarchy

type GetHierarchy struct {
	binary.Generate
	Capture service.CaptureId
}

GetHierarchy records the parameters of a service.GetHierarchy RPC request.

func (*GetHierarchy) Class

func (*GetHierarchy) Class() binary.Class

type GetMemoryInfo

type GetMemoryInfo struct {
	binary.Generate
	Capture service.CaptureId
	After   atom.ID
	Range   memory.Range
}

GetMemoryInfo records the parameters of a service.GetMemoryInfo RPC request.

func (*GetMemoryInfo) Class

func (*GetMemoryInfo) Class() binary.Class

type GetState

type GetState struct {
	binary.Generate
	Capture service.CaptureId
	After   atom.ID
}

GetState records the parameters of a service.GetState RPC request.

func (*GetState) Class

func (*GetState) Class() binary.Class

type GetTimingInfo

type GetTimingInfo struct {
	binary.Generate
	Device     service.DeviceId
	Capture    service.CaptureId
	TimingMask service.TimingMask
}

GetTimingInfo records the parameters of a service.GetTimingInfo RPC request.

func (*GetTimingInfo) Class

func (*GetTimingInfo) Class() binary.Class

type PrerenderFramebuffers

type PrerenderFramebuffers struct {
	binary.Generate
	Device  service.DeviceId
	Capture service.CaptureId
	API     service.ApiId
	AtomIDs []uint64
	Width   uint32
	Height  uint32
}

PrerenderFramebuffers records the parameters of a service.PrerenderFramebuffers RPC request.

func (*PrerenderFramebuffers) Class

func (*PrerenderFramebuffers) Class() binary.Class

type RenderFramebufferColor

type RenderFramebufferColor struct {
	binary.Generate
	Device    service.DeviceId
	Capture   service.CaptureId
	API       service.ApiId
	After     atom.ID
	Width     uint32
	Height    uint32
	Wireframe bool
}

RenderFramebufferColor records the parameters of an internal RenderFramebufferColor request.

func (*RenderFramebufferColor) Class

func (*RenderFramebufferColor) Class() binary.Class

type RenderFramebufferDepth

type RenderFramebufferDepth struct {
	binary.Generate
	Device            service.DeviceId
	Capture           service.CaptureId
	API               service.ApiId
	After             atom.ID
	FramebufferWidth  uint32
	FramebufferHeight uint32
}

RenderFramebufferDepth records the parameters of an internal RenderFramebufferDepth request.

func (*RenderFramebufferDepth) Class

func (*RenderFramebufferDepth) Class() binary.Class

type ReplaceAtom

type ReplaceAtom struct {
	binary.Generate
	Capture service.CaptureId
	Atom    atom.ID
	Type    atom.TypeID
	Data    service.Binary
}

ReplaceAtom records the parameters of a service.ReplaceAtom RPC request.

func (*ReplaceAtom) Class

func (*ReplaceAtom) Class() binary.Class