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 25 matching lines...) Expand all Loading... |
36 uint32_t client_texture_id, | 36 uint32_t client_texture_id, |
37 int stream_id); | 37 int stream_id); |
38 | 38 |
39 private: | 39 private: |
40 StreamTexture(GpuCommandBufferStub* owner_stub, | 40 StreamTexture(GpuCommandBufferStub* owner_stub, |
41 int32_t route_id, | 41 int32_t route_id, |
42 uint32_t texture_id); | 42 uint32_t texture_id); |
43 ~StreamTexture() override; | 43 ~StreamTexture() override; |
44 | 44 |
45 // gl::GLImage implementation: | 45 // gl::GLImage implementation: |
46 void Destroy(bool have_context) override; | |
47 gfx::Size GetSize() override; | 46 gfx::Size GetSize() override; |
48 unsigned GetInternalFormat() override; | 47 unsigned GetInternalFormat() override; |
49 bool BindTexImage(unsigned target) override; | 48 bool BindTexImage(unsigned target) override; |
50 void ReleaseTexImage(unsigned target) override; | 49 void ReleaseTexImage(unsigned target) override; |
51 bool CopyTexImage(unsigned target) override; | 50 bool CopyTexImage(unsigned target) override; |
52 bool CopyTexSubImage(unsigned target, | 51 bool CopyTexSubImage(unsigned target, |
53 const gfx::Point& offset, | 52 const gfx::Point& offset, |
54 const gfx::Rect& rect) override; | 53 const gfx::Rect& rect) override; |
55 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 54 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
56 int z_order, | 55 int z_order, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 bool has_listener_; | 99 bool has_listener_; |
101 uint32_t texture_id_; | 100 uint32_t texture_id_; |
102 | 101 |
103 base::WeakPtrFactory<StreamTexture> weak_factory_; | 102 base::WeakPtrFactory<StreamTexture> weak_factory_; |
104 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 103 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
105 }; | 104 }; |
106 | 105 |
107 } // namespace gpu | 106 } // namespace gpu |
108 | 107 |
109 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ | 108 #endif // GPU_IPC_SERVICE_STREAM_TEXTURE_ANDROID_H_ |
OLD | NEW |