| 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 #ifndef CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 5 #ifndef GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ |
| 6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 6 #define GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "content/common/gpu/gpu_command_buffer_stub.h" | |
| 13 #include "gpu/command_buffer/service/gl_stream_texture_image.h" | 12 #include "gpu/command_buffer/service/gl_stream_texture_image.h" |
| 13 #include "gpu/ipc/service/gpu_command_buffer_stub.h" |
| 14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
| 15 #include "ui/gl/android/surface_texture.h" | 15 #include "ui/gl/android/surface_texture.h" |
| 16 #include "ui/gl/gl_image.h" | 16 #include "ui/gl/gl_image.h" |
| 17 | 17 |
| 18 namespace ui { | 18 namespace ui { |
| 19 class ScopedMakeCurrent; | 19 class ScopedMakeCurrent; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace gfx { | 22 namespace gfx { |
| 23 class Size; | 23 class Size; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace gpu { |
| 27 | 27 |
| 28 class StreamTexture : public gpu::gles2::GLStreamTextureImage, | 28 class StreamTexture : public gles2::GLStreamTextureImage, |
| 29 public IPC::Listener, | 29 public IPC::Listener, |
| 30 public GpuCommandBufferStub::DestructionObserver { | 30 public GpuCommandBufferStub::DestructionObserver { |
| 31 public: | 31 public: |
| 32 static bool Create(GpuCommandBufferStub* owner_stub, | 32 static bool Create(GpuCommandBufferStub* owner_stub, |
| 33 uint32_t client_texture_id, | 33 uint32_t client_texture_id, |
| 34 int stream_id); | 34 int stream_id); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 StreamTexture(GpuCommandBufferStub* owner_stub, | 37 StreamTexture(GpuCommandBufferStub* owner_stub, |
| 38 int32_t route_id, | 38 int32_t route_id, |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 unsigned vertex_shader_; | 99 unsigned vertex_shader_; |
| 100 unsigned fragment_shader_; | 100 unsigned fragment_shader_; |
| 101 unsigned program_; | 101 unsigned program_; |
| 102 unsigned vertex_buffer_; | 102 unsigned vertex_buffer_; |
| 103 int u_xform_location_; | 103 int u_xform_location_; |
| 104 | 104 |
| 105 base::WeakPtrFactory<StreamTexture> weak_factory_; | 105 base::WeakPtrFactory<StreamTexture> weak_factory_; |
| 106 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 106 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace content | 109 } // namespace gpu |
| 110 | 110 |
| 111 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 111 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ |
| OLD | NEW |