| 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 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // gfx::GLImage implementation: | 35 // gfx::GLImage implementation: |
| 36 virtual void Destroy() OVERRIDE; | 36 virtual void Destroy() OVERRIDE; |
| 37 virtual gfx::Size GetSize() OVERRIDE; | 37 virtual gfx::Size GetSize() OVERRIDE; |
| 38 virtual bool BindTexImage(unsigned target) OVERRIDE; | 38 virtual bool BindTexImage(unsigned target) OVERRIDE; |
| 39 virtual void ReleaseTexImage(unsigned target) OVERRIDE; | 39 virtual void ReleaseTexImage(unsigned target) OVERRIDE; |
| 40 virtual void WillUseTexImage() OVERRIDE; | 40 virtual void WillUseTexImage() OVERRIDE; |
| 41 virtual void DidUseTexImage() OVERRIDE {} | 41 virtual void DidUseTexImage() OVERRIDE {} |
| 42 virtual void WillModifyTexImage() OVERRIDE {} | 42 virtual void WillModifyTexImage() OVERRIDE {} |
| 43 virtual void DidModifyTexImage() OVERRIDE {} | 43 virtual void DidModifyTexImage() OVERRIDE {} |
| 44 virtual bool ScheduleOverlayPlane(int z_order, |
| 45 gfx::OverlayTransform transform, |
| 46 const gfx::Rect& bounds_rect, |
| 47 const gfx::RectF& crop_rect) OVERRIDE; |
| 44 | 48 |
| 45 // GpuCommandBufferStub::DestructionObserver implementation. | 49 // GpuCommandBufferStub::DestructionObserver implementation. |
| 46 virtual void OnWillDestroyStub() OVERRIDE; | 50 virtual void OnWillDestroyStub() OVERRIDE; |
| 47 | 51 |
| 48 // Called when a new frame is available for the SurfaceTexture. | 52 // Called when a new frame is available for the SurfaceTexture. |
| 49 void OnFrameAvailable(); | 53 void OnFrameAvailable(); |
| 50 | 54 |
| 51 // IPC::Listener implementation: | 55 // IPC::Listener implementation: |
| 52 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 53 | 57 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 74 int32 route_id_; | 78 int32 route_id_; |
| 75 bool has_listener_; | 79 bool has_listener_; |
| 76 | 80 |
| 77 base::WeakPtrFactory<StreamTexture> weak_factory_; | 81 base::WeakPtrFactory<StreamTexture> weak_factory_; |
| 78 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 82 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
| 79 }; | 83 }; |
| 80 | 84 |
| 81 } // namespace content | 85 } // namespace content |
| 82 | 86 |
| 83 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 87 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ |
| OLD | NEW |