Lines Matching refs:gles2_if_

41 #define assertNoGLError() assert(!gles2_if_->GetError(context_->pp_resource()));
138 const PPB_OpenGLES2* gles2_if_;
381 gles2_if_ = static_cast<const PPB_OpenGLES2*>(
393 gles2_if_->DeleteProgram(graphics_3d, shader_2d_.program);
395 gles2_if_->DeleteProgram(graphics_3d, shader_rectangle_arb_.program);
397 gles2_if_->DeleteProgram(graphics_3d, shader_external_oes_.program);
479 gles2_if_->UseProgram(graphics_3d, shader_2d_.program);
480 gles2_if_->Uniform2f(
484 gles2_if_->UseProgram(graphics_3d, shader_rectangle_arb_.program);
485 gles2_if_->Uniform2f(graphics_3d,
492 gles2_if_->UseProgram(graphics_3d, shader_external_oes_.program);
493 gles2_if_->Uniform2f(
497 gles2_if_->Viewport(graphics_3d, x, y, half_width, half_height);
498 gles2_if_->ActiveTexture(graphics_3d, GL_TEXTURE0);
499 gles2_if_->BindTexture(
501 gles2_if_->DrawArrays(graphics_3d, GL_TRIANGLE_STRIP, 0, 4);
503 gles2_if_->UseProgram(graphics_3d, 0);
571 gles2_if_->ClearColor(context_->pp_resource(), 1, 0, 0, 1);
572 gles2_if_->Clear(context_->pp_resource(), GL_COLOR_BUFFER_BIT);
588 gles2_if_->GenBuffers(context_->pp_resource(), 1, &buffer);
589 gles2_if_->BindBuffer(context_->pp_resource(), GL_ARRAY_BUFFER, buffer);
591 gles2_if_->BufferData(context_->pp_resource(),
663 shader.program = gles2_if_->CreateProgram(context_->pp_resource());
670 gles2_if_->LinkProgram(context_->pp_resource(), shader.program);
671 gles2_if_->UseProgram(context_->pp_resource(), shader.program);
672 gles2_if_->Uniform1i(
674 gles2_if_->GetUniformLocation(
679 shader.texcoord_scale_location = gles2_if_->GetUniformLocation(
682 GLint pos_location = gles2_if_->GetAttribLocation(
684 GLint tc_location = gles2_if_->GetAttribLocation(
688 gles2_if_->EnableVertexAttribArray(context_->pp_resource(), pos_location);
689 gles2_if_->VertexAttribPointer(
691 gles2_if_->EnableVertexAttribArray(context_->pp_resource(), tc_location);
692 gles2_if_->VertexAttribPointer(
701 gles2_if_->UseProgram(context_->pp_resource(), 0);
710 GLuint shader = gles2_if_->CreateShader(context_->pp_resource(), type);
711 gles2_if_->ShaderSource(context_->pp_resource(), shader, 1, &source, &size);
712 gles2_if_->CompileShader(context_->pp_resource(), shader);
713 gles2_if_->AttachShader(context_->pp_resource(), program, shader);
714 gles2_if_->DeleteShader(context_->pp_resource(), shader);