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 CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ |
6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 6 #define CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/common/gpu/gpu_command_buffer_stub.h" | 10 #include "content/common/gpu/gpu_command_buffer_stub.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const gfx::Rect& rect) override; | 43 const gfx::Rect& rect) override; |
44 void WillUseTexImage() override; | 44 void WillUseTexImage() override; |
45 void DidUseTexImage() override {} | 45 void DidUseTexImage() override {} |
46 void WillModifyTexImage() override {} | 46 void WillModifyTexImage() override {} |
47 void DidModifyTexImage() override {} | 47 void DidModifyTexImage() override {} |
48 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 48 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
49 int z_order, | 49 int z_order, |
50 gfx::OverlayTransform transform, | 50 gfx::OverlayTransform transform, |
51 const gfx::Rect& bounds_rect, | 51 const gfx::Rect& bounds_rect, |
52 const gfx::RectF& crop_rect) override; | 52 const gfx::RectF& crop_rect) override; |
| 53 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 54 uint64_t process_tracing_id, |
| 55 const std::string& dump_name) override; |
53 | 56 |
54 // GpuCommandBufferStub::DestructionObserver implementation. | 57 // GpuCommandBufferStub::DestructionObserver implementation. |
55 void OnWillDestroyStub() override; | 58 void OnWillDestroyStub() override; |
56 | 59 |
57 // Called when a new frame is available for the SurfaceTexture. | 60 // Called when a new frame is available for the SurfaceTexture. |
58 void OnFrameAvailable(); | 61 void OnFrameAvailable(); |
59 | 62 |
60 // IPC::Listener implementation: | 63 // IPC::Listener implementation: |
61 bool OnMessageReceived(const IPC::Message& message) override; | 64 bool OnMessageReceived(const IPC::Message& message) override; |
62 | 65 |
(...skipping 20 matching lines...) Expand all Loading... |
83 int32 route_id_; | 86 int32 route_id_; |
84 bool has_listener_; | 87 bool has_listener_; |
85 | 88 |
86 base::WeakPtrFactory<StreamTexture> weak_factory_; | 89 base::WeakPtrFactory<StreamTexture> weak_factory_; |
87 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 90 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
88 }; | 91 }; |
89 | 92 |
90 } // namespace content | 93 } // namespace content |
91 | 94 |
92 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 95 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ |
OLD | NEW |