blob: a9b3b26ad2b305fdf2a7d0352d084cc8ee892ea9 [file] [log] [blame]
// Copyright (C) 2015 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package atom
// binary: java.disable.Flags = true
// Flags is a bitfield describing characteristics of an atom.
// TODO: Kill flags and just use the metadata instead.
type Flags uint32
const (
DrawCall Flags = 1 << iota
EndOfFrame
)
// IsDrawCall returns true if the atom is a draw call.
func (f Flags) IsDrawCall() bool { return (f & DrawCall) != 0 }
// IsEndOfFrame returns true if the atom represents the end of a frame.
func (f Flags) IsEndOfFrame() bool { return (f & EndOfFrame) != 0 }