Lines Matching defs:texture_ref

922       TextureRef* texture_ref,
954 void ProduceTextureRef(std::string func_name, TextureRef* texture_ref,
1876 scoped_refptr<TextureRef> texture_ref;
1879 texture_ref = info.bound_texture_2d;
1882 texture_ref = info.bound_texture_cube_map;
1885 texture_ref = info.bound_texture_external_oes;
1888 texture_ref = info.bound_texture_rectangle_arb;
1894 if (texture_ref.get()) {
1895 last_id = texture_ref->service_id();
3011 TextureRef* texture_ref = GetTexture(client_ids[ii]);
3012 if (texture_ref) {
3013 Texture* texture = texture_ref->texture();
3017 // Unbind texture_ref from texture_ref units.
3019 state_.texture_units[jj].Unbind(texture_ref);
3025 ->UnbindTexture(GL_READ_FRAMEBUFFER_EXT, texture_ref);
3029 ->UnbindTexture(GL_DRAW_FRAMEBUFFER_EXT, texture_ref);
3034 ->UnbindTexture(GL_FRAMEBUFFER, texture_ref);
3334 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
3336 glBindTexture(target, texture_ref ? texture_ref->service_id() : 0);
3389 TextureRef* texture_ref = texture_manager()->GetTexture(client_texture_id);
3390 if (texture_ref) {
3391 *service_texture_id = texture_ref->service_id();
4224 TextureRef* texture_ref = NULL;
4227 texture_ref = GetTexture(client_id);
4228 if (!texture_ref) {
4240 texture_ref = GetTexture(client_id);
4246 texture_ref = texture_manager()->GetDefaultTextureInfo(target);
4250 if (texture_ref) {
4251 Texture* texture = texture_ref->texture();
4261 texture_manager()->SetTarget(texture_ref, target);
4272 unit.bound_texture_2d = texture_ref;
4275 unit.bound_texture_cube_map = texture_ref;
4278 unit.bound_texture_external_oes = texture_ref;
4281 unit.bound_texture_rectangle_arb = texture_ref;
4384 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
4386 if (!texture_ref ||
4387 !texture_manager()->CanGenerateMipmaps(texture_ref)) {
4396 if (!texture_manager()->ClearTextureLevel(this, texture_ref, face, 0)) {
4403 if (!texture_manager()->ClearTextureLevel(this, texture_ref, target, 0)) {
4423 texture_ref->texture()->min_filter());
4427 texture_manager()->MarkMipmapsGenerated(texture_ref);
5302 TextureRef* texture_ref = NULL;
5304 texture_ref = GetTexture(client_texture_id);
5305 if (!texture_ref) {
5308 name, "unknown texture_ref");
5311 service_id = texture_ref->service_id();
5321 if (texture_ref)
5322 DoWillUseTexImageIfNeeded(texture_ref->texture(), textarget);
5338 framebuffer->AttachTexture(attachment, texture_ref, textarget, level,
5345 if (texture_ref)
5346 DoDidUseTexImageIfNeeded(texture_ref->texture(), textarget);
6235 TextureRef* texture_ref =
6238 if (!texture_ref || !texture_manager()->CanRender(texture_ref)) {
6254 Texture* texture = texture_ref->texture();
6284 TextureRef* texture_ref =
6286 if (!texture_ref || !texture_manager()->CanRender(texture_ref)) {
6288 // Get the texture_ref info that was previously bound here.
6289 texture_ref = texture_unit.bind_target == GL_TEXTURE_2D
6293 texture_ref ? texture_ref->service_id() : 0);
6298 Texture* texture = texture_ref->texture();
6334 TextureRef* texture_ref =
6336 if (texture_ref && !texture_ref->texture()->SafeToRenderFrom()) {
6337 if (!texture_manager()->ClearRenderableLevels(this, texture_ref)) {
7061 const TextureRef* texture_ref = GetTexture(client_id);
7062 return texture_ref && texture_ref->texture()->IsValid();
7172 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
7174 if (!texture_ref) {
7180 Texture* texture = texture_ref->texture();
8376 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
8378 if (!texture_ref) {
8384 Texture* texture = texture_ref->texture();
8421 texture_ref, target, level, internal_format,
8592 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
8594 if (!texture_ref) {
8600 Texture* texture = texture_ref->texture();
8670 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
8672 if (!texture_ref) {
8678 Texture* texture = texture_ref->texture();
8770 ScopedModifyPixels modify(texture_ref);
8776 ScopedModifyPixels modify(texture_ref);
8783 texture_ref, target, level, internal_format, width, height, 1,
8802 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
8804 if (!texture_ref) {
8810 Texture* texture = texture_ref->texture();
8820 if (async_pixel_transfer_manager_->AsyncTransferIsInProgress(texture_ref)) {
8863 if (!texture_manager()->ClearTextureLevel(this, texture_ref, target, level)) {
8884 ScopedModifyPixels modify(texture_ref);
8895 ScopedModifyPixels modify(texture_ref);
8931 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
8933 if (!texture_ref) {
8939 Texture* texture = texture_ref->texture();
8957 if (async_pixel_transfer_manager_->AsyncTransferIsInProgress(texture_ref)) {
8997 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
8999 Texture* texture = texture_ref->texture();
9006 if (!texture_manager()->ClearTextureLevel(this, texture_ref,
9033 texture_manager()->SetLevelCleared(texture_ref, target, level, true);
10126 TextureRef* texture_ref =
10128 if (!texture_ref) {
10149 ReleaseIOSurfaceForTexture(texture_ref->service_id());
10153 std::make_pair(texture_ref->service_id(), surface));
10177 texture_ref, target, 0, GL_RGBA, width, height, 1, 0,
10484 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
10486 if (!texture_ref) {
10492 Texture* texture = texture_ref->texture();
10538 texture_ref, target, ii, format,
10559 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
10561 ProduceTextureRef("glProduceTextureCHROMIUM", texture_ref, target, data);
10575 TextureRef* texture_ref, GLenum target, const GLbyte* data) {
10581 if (!texture_ref) {
10587 Texture* produced = texture_manager()->Produce(texture_ref);
10613 scoped_refptr<TextureRef> texture_ref =
10615 if (!texture_ref.get()) {
10621 GLuint client_id = texture_ref->client_id();
10643 texture_ref = texture_manager()->Consume(client_id, texture);
10644 glBindTexture(target, texture_ref->service_id());
10650 unit.bound_texture_2d = texture_ref;
10653 unit.bound_texture_cube_map = texture_ref;
10656 unit.bound_texture_external_oes = texture_ref;
10659 unit.bound_texture_rectangle_arb = texture_ref;
10707 TextureRef* texture_ref = GetTexture(client_id);
10708 if (texture_ref) {
10732 texture_ref = texture_manager()->Consume(client_id, texture);
10772 TextureRef* texture_ref =
10774 if (!texture_ref) {
10802 texture_ref, target, 0, GL_RGBA, size.width(), size.height(), 1, 0,
10804 texture_manager()->SetLevelImage(texture_ref, target, 0, gl_image);
10813 TextureRef* texture_ref =
10815 if (!texture_ref) {
10831 if (texture_ref->texture()->GetLevelImage(target, 0) != gl_image)
10841 texture_ref, target, 0, GL_RGBA, 0, 0, 1, 0,
10973 TextureRef* texture_ref,
10993 if (!texture_ref ||
10994 async_pixel_transfer_manager_->AsyncTransferIsInProgress(texture_ref)) {
11078 TextureRef* texture_ref;
11081 &state_, "glAsyncTexImage2DCHROMIUM", args, &texture_ref)) {
11086 Texture* texture = texture_ref->texture();
11088 "glAsyncTexImage2DCHROMIUM", texture_ref, target, level, pixels))
11116 async_pixel_transfer_manager_->CreatePixelTransferDelegate(texture_ref,
11125 // exists, which implies through manager->texture_ref->state
11128 base::Unretained(texture_ref),
11182 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
11184 Texture* texture = texture_ref->texture();
11186 "glAsyncTexSubImage2DCHROMIUM", texture_ref, target, level, pixels))
11196 if (!texture_manager()->ClearTextureLevel(this, texture_ref,
11211 async_pixel_transfer_manager_->GetPixelTransferDelegate(texture_ref);
11225 texture_ref, define_params);
11246 TextureRef* texture_ref = texture_manager()->GetTextureInfoForTarget(
11248 if (!texture_ref) {
11255 async_pixel_transfer_manager_->GetPixelTransferDelegate(texture_ref);
11278 TextureRef* texture_ref) {
11279 Texture* texture = texture_ref->texture();