| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const gfx::Point& offset, | 49 const gfx::Point& offset, |
| 50 const gfx::Rect& rect) override; | 50 const gfx::Rect& rect) override; |
| 51 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 51 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 52 int z_order, | 52 int z_order, |
| 53 gfx::OverlayTransform transform, | 53 gfx::OverlayTransform transform, |
| 54 const gfx::Rect& bounds_rect, | 54 const gfx::Rect& bounds_rect, |
| 55 const gfx::RectF& crop_rect) override; | 55 const gfx::RectF& crop_rect) override; |
| 56 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 56 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 57 uint64_t process_tracing_id, | 57 uint64_t process_tracing_id, |
| 58 const std::string& dump_name) override; | 58 const std::string& dump_name) override; |
| 59 bool EmulatingRGB() const override; |
| 59 | 60 |
| 60 // GpuCommandBufferStub::DestructionObserver implementation. | 61 // GpuCommandBufferStub::DestructionObserver implementation. |
| 61 void OnWillDestroyStub() override; | 62 void OnWillDestroyStub() override; |
| 62 | 63 |
| 63 scoped_ptr<ui::ScopedMakeCurrent> MakeStubCurrent(); | 64 scoped_ptr<ui::ScopedMakeCurrent> MakeStubCurrent(); |
| 64 | 65 |
| 65 void UpdateTexImage(); | 66 void UpdateTexImage(); |
| 66 | 67 |
| 67 // Called when a new frame is available for the SurfaceTexture. | 68 // Called when a new frame is available for the SurfaceTexture. |
| 68 void OnFrameAvailable(); | 69 void OnFrameAvailable(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 unsigned vertex_buffer_; | 102 unsigned vertex_buffer_; |
| 102 int u_xform_location_; | 103 int u_xform_location_; |
| 103 | 104 |
| 104 base::WeakPtrFactory<StreamTexture> weak_factory_; | 105 base::WeakPtrFactory<StreamTexture> weak_factory_; |
| 105 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 106 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace content | 109 } // namespace content |
| 109 | 110 |
| 110 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 111 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ |
| OLD | NEW |