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 GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ | 5 #ifndef GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ |
6 #define GPU_IPC_SERVICE_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 <memory> | 10 #include <memory> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 void ReleaseTexImage(unsigned target) override; | 49 void ReleaseTexImage(unsigned target) override; |
50 bool CopyTexImage(unsigned target) override; | 50 bool CopyTexImage(unsigned target) override; |
51 bool CopyTexSubImage(unsigned target, | 51 bool CopyTexSubImage(unsigned target, |
52 const gfx::Point& offset, | 52 const gfx::Point& offset, |
53 const gfx::Rect& rect) override; | 53 const gfx::Rect& rect) override; |
54 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 54 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
55 int z_order, | 55 int z_order, |
56 gfx::OverlayTransform transform, | 56 gfx::OverlayTransform transform, |
57 const gfx::Rect& bounds_rect, | 57 const gfx::Rect& bounds_rect, |
58 const gfx::RectF& crop_rect) override; | 58 const gfx::RectF& crop_rect) override; |
| 59 void Flush() override {} |
59 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 60 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
60 uint64_t process_tracing_id, | 61 uint64_t process_tracing_id, |
61 const std::string& dump_name) override; | 62 const std::string& dump_name) override; |
62 | 63 |
63 // gpu::gles2::GLStreamTextureMatrix implementation | 64 // gpu::gles2::GLStreamTextureMatrix implementation |
64 void GetTextureMatrix(float xform[16]) override; | 65 void GetTextureMatrix(float xform[16]) override; |
65 | 66 |
66 // GpuCommandBufferStub::DestructionObserver implementation. | 67 // GpuCommandBufferStub::DestructionObserver implementation. |
67 void OnWillDestroyStub() override; | 68 void OnWillDestroyStub() override; |
68 | 69 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 unsigned vertex_buffer_; | 105 unsigned vertex_buffer_; |
105 int u_xform_location_; | 106 int u_xform_location_; |
106 | 107 |
107 base::WeakPtrFactory<StreamTexture> weak_factory_; | 108 base::WeakPtrFactory<StreamTexture> weak_factory_; |
108 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 109 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
109 }; | 110 }; |
110 | 111 |
111 } // namespace gpu | 112 } // namespace gpu |
112 | 113 |
113 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ | 114 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ |
OLD | NEW |