Home | History | Annotate | Download | only in video_decode

Lines Matching defs:context_

36 // Assert |context_| isn't holding any GL Errors.  Done as a macro instead of a
39 assert(!gles2_if_->GetError(context_->pp_resource()));
70 // particular need to delete context_ and re-create textures.
186 pp::Graphics3D* context_;
228 context_(NULL) {
239 gles2_if_->DeleteProgram(context_->pp_resource(), shader_2d_.program);
242 context_->pp_resource(), shader_rectangle_arb_.program);
250 delete context_;
273 this, *context_, PP_VIDEODECODER_H264PROFILE_MAIN));
430 gles2_if_->UseProgram(context_->pp_resource(), shader_2d_.program);
432 context_->pp_resource(), shader_2d_.texcoord_scale_location, 1.0, 1.0);
437 context_->pp_resource(), shader_rectangle_arb_.program);
438 gles2_if_->Uniform2f(context_->pp_resource(),
444 gles2_if_->Viewport(context_->pp_resource(), x, y,
447 gles2_if_->ActiveTexture(context_->pp_resource(), GL_TEXTURE0);
449 context_->pp_resource(), info.texture_target, info.buffer.texture_id);
450 gles2_if_->DrawArrays(context_->pp_resource(), GL_TRIANGLE_STRIP, 0, 4);
452 gles2_if_->UseProgram(context_->pp_resource(), 0);
458 assert(context_->SwapBuffers(cb) == PP_OK_COMPLETIONPENDING);
483 assert(!context_);
497 context_ = new pp::Graphics3D(this, context_attributes);
498 assert(!context_->is_null());
499 assert(BindGraphics(*context_));
502 gles2_if_->ClearColor(context_->pp_resource(), 1, 0, 0, 1);
503 gles2_if_->Clear(context_->pp_resource(), GL_COLOR_BUFFER_BIT);
539 gles2_if_->GenTextures(context_->pp_resource(), 1, &texture_id);
542 gles2_if_->ActiveTexture(context_->pp_resource(), GL_TEXTURE0);
543 gles2_if_->BindTexture(context_->pp_resource(), texture_target, texture_id);
545 context_->pp_resource(), texture_target, GL_TEXTURE_MIN_FILTER,
548 context_->pp_resource(), texture_target, GL_TEXTURE_MAG_FILTER,
551 context_->pp_resource(), texture_target, GL_TEXTURE_WRAP_S,
554 context_->pp_resource(), texture_target, GL_TEXTURE_WRAP_T,
559 context_->pp_resource(), texture_target, 0, GL_RGBA, width, height, 0,
567 gles2_if_->DeleteTextures(context_->pp_resource(), 1, &id);
579 gles2_if_->GenBuffers(context_->pp_resource(), 1, &buffer);
580 gles2_if_->BindBuffer(context_->pp_resource(), GL_ARRAY_BUFFER, buffer);
582 gles2_if_->BufferData(context_->pp_resource(), GL_ARRAY_BUFFER,
634 shader.program = gles2_if_->CreateProgram(context_->pp_resource());
639 gles2_if_->LinkProgram(context_->pp_resource(), shader.program);
640 gles2_if_->UseProgram(context_->pp_resource(), shader.program);
642 context_->pp_resource(),
644 context_->pp_resource(), shader.program, "s_texture"), 0);
648 context_->pp_resource(), shader.program, "v_scale");
651 context_->pp_resource(), shader.program, "a_position");
653 context_->pp_resource(), shader.program, "a_texCoord");
656 gles2_if_->EnableVertexAttribArray(context_->pp_resource(), pos_location);
657 gles2_if_->VertexAttribPointer(context_->pp_resource(), pos_location, 2,
659 gles2_if_->EnableVertexAttribArray(context_->pp_resource(), tc_location);
661 context_->pp_resource(), tc_location, 2, GL_FLOAT, GL_FALSE, 0,
664 gles2_if_->UseProgram(context_->pp_resource(), 0);
671 GLuint shader = gles2_if_->CreateShader(context_->pp_resource(), type);
672 gles2_if_->ShaderSource(context_->pp_resource(), shader, 1, &source, &size);
673 gles2_if_->CompileShader(context_->pp_resource(), shader);
674 gles2_if_->AttachShader(context_->pp_resource(), program, shader);
675 gles2_if_->DeleteShader(context_->pp_resource(), shader);