| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "gpu/ipc/service/stream_texture_android.h" | 5 #include "gpu/ipc/service/stream_texture_android.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/strings/stringize_macros.h" | 10 #include "base/strings/stringize_macros.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 gles2::Texture::UNBOUND); | 54 gles2::Texture::UNBOUND); |
| 55 return true; | 55 return true; |
| 56 } | 56 } |
| 57 | 57 |
| 58 return false; | 58 return false; |
| 59 } | 59 } |
| 60 | 60 |
| 61 StreamTexture::StreamTexture(GpuCommandBufferStub* owner_stub, | 61 StreamTexture::StreamTexture(GpuCommandBufferStub* owner_stub, |
| 62 int32_t route_id, | 62 int32_t route_id, |
| 63 uint32_t texture_id) | 63 uint32_t texture_id) |
| 64 : surface_texture_(gfx::SurfaceTexture::Create(texture_id)), | 64 : surface_texture_(gl::SurfaceTexture::Create(texture_id)), |
| 65 size_(0, 0), | 65 size_(0, 0), |
| 66 has_pending_frame_(false), | 66 has_pending_frame_(false), |
| 67 owner_stub_(owner_stub), | 67 owner_stub_(owner_stub), |
| 68 route_id_(route_id), | 68 route_id_(route_id), |
| 69 has_listener_(false), | 69 has_listener_(false), |
| 70 texture_id_(texture_id), | 70 texture_id_(texture_id), |
| 71 framebuffer_(0), | 71 framebuffer_(0), |
| 72 vertex_shader_(0), | 72 vertex_shader_(0), |
| 73 fragment_shader_(0), | 73 fragment_shader_(0), |
| 74 program_(0), | 74 program_(0), |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 return false; | 269 return false; |
| 270 } | 270 } |
| 271 | 271 |
| 272 void StreamTexture::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 272 void StreamTexture::OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 273 uint64_t process_tracing_id, | 273 uint64_t process_tracing_id, |
| 274 const std::string& dump_name) { | 274 const std::string& dump_name) { |
| 275 // TODO(ericrk): Add OnMemoryDump for GLImages. crbug.com/514914 | 275 // TODO(ericrk): Add OnMemoryDump for GLImages. crbug.com/514914 |
| 276 } | 276 } |
| 277 | 277 |
| 278 } // namespace gpu | 278 } // namespace gpu |
| OLD | NEW |