Home | History | Annotate | Download | only in detail

Lines Matching refs:state

19 import com.android.ide.eclipse.gltrace.state.GLCompositeProperty;
20 import com.android.ide.eclipse.gltrace.state.GLStateType;
21 import com.android.ide.eclipse.gltrace.state.GLStringProperty;
22 import com.android.ide.eclipse.gltrace.state.IGLProperty;
37 public boolean isApplicable(IGLProperty state) {
38 return getShaderSourceProperty(state) != null;
58 public void updateControl(IGLProperty state) {
59 IGLProperty shaderSrcProperty = getShaderSourceProperty(state);
72 * the state hierarchy.
73 * @param state any node in the GL state hierarchy
79 private IGLProperty getShaderSourceProperty(IGLProperty state) {
80 if (state.getType() == GLStateType.SHADER_SOURCE) {
82 return state;
85 if (state.getType() != GLStateType.PER_SHADER_STATE) {
88 state = state.getParent();
91 if (state != null && state.getType() == GLStateType.PER_SHADER_STATE) {
93 return ((GLCompositeProperty) state).getProperty(GLStateType.SHADER_SOURCE);