OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/common/gpu/texture_image_transport_surface.h" | 5 #include "content/common/gpu/texture_image_transport_surface.h" |
6 | 6 |
7 #include "content/common/gpu/gpu_channel.h" | 7 #include "content/common/gpu/gpu_channel.h" |
8 #include "content/common/gpu/gpu_channel_manager.h" | 8 #include "content/common/gpu/gpu_channel_manager.h" |
9 #include "content/common/gpu/gpu_messages.h" | 9 #include "content/common/gpu/gpu_messages.h" |
10 #include "gpu/command_buffer/service/context_group.h" | 10 #include "gpu/command_buffer/service/context_group.h" |
11 #include "gpu/command_buffer/service/gpu_scheduler.h" | 11 #include "gpu/command_buffer/service/gpu_scheduler.h" |
12 #include "gpu/command_buffer/service/texture_manager.h" | 12 #include "gpu/command_buffer/service/texture_manager.h" |
13 #include "ui/gfx/gl/scoped_make_current.h" | 13 #include "ui/gl/scoped_make_current.h" |
14 | 14 |
15 using gpu::gles2::ContextGroup; | 15 using gpu::gles2::ContextGroup; |
16 using gpu::gles2::TextureManager; | 16 using gpu::gles2::TextureManager; |
17 typedef TextureManager::TextureInfo TextureInfo; | 17 typedef TextureManager::TextureInfo TextureInfo; |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 class ScopedFrameBufferBinder { | 21 class ScopedFrameBufferBinder { |
22 public: | 22 public: |
23 ScopedFrameBufferBinder(unsigned int fbo) { | 23 ScopedFrameBufferBinder(unsigned int fbo) { |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 Texture& texture = textures_[i]; | 431 Texture& texture = textures_[i]; |
432 texture.info = NULL; | 432 texture.info = NULL; |
433 if (!texture.sent_to_client) | 433 if (!texture.sent_to_client) |
434 continue; | 434 continue; |
435 GpuHostMsg_AcceleratedSurfaceRelease_Params params; | 435 GpuHostMsg_AcceleratedSurfaceRelease_Params params; |
436 params.identifier = texture.client_id; | 436 params.identifier = texture.client_id; |
437 helper_->SendAcceleratedSurfaceRelease(params); | 437 helper_->SendAcceleratedSurfaceRelease(params); |
438 } | 438 } |
439 parent_stub_ = NULL; | 439 parent_stub_ = NULL; |
440 } | 440 } |
OLD | NEW |