| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void OnSetSize(const gfx::Size& size) { size_ = size; } | 52 void OnSetSize(const gfx::Size& size) { size_ = size; } |
| 53 | 53 |
| 54 scoped_refptr<gfx::SurfaceTexture> surface_texture_; | 54 scoped_refptr<gfx::SurfaceTexture> surface_texture_; |
| 55 | 55 |
| 56 // Current transform matrix of the surface texture. | 56 // Current transform matrix of the surface texture. |
| 57 float current_matrix_[16]; | 57 float current_matrix_[16]; |
| 58 | 58 |
| 59 // Current size of the surface texture. | 59 // Current size of the surface texture. |
| 60 gfx::Size size_; | 60 gfx::Size size_; |
| 61 | 61 |
| 62 // Whether the surface texture has been updated. | 62 // Whether we ever bound a valid frame. |
| 63 bool has_updated_; | 63 bool has_valid_frame_; |
| 64 |
| 65 // Whether a new frame is available that we should update to. |
| 66 bool has_pending_frame_; |
| 64 | 67 |
| 65 GpuCommandBufferStub* owner_stub_; | 68 GpuCommandBufferStub* owner_stub_; |
| 66 int32 route_id_; | 69 int32 route_id_; |
| 67 bool has_listener_; | 70 bool has_listener_; |
| 68 | 71 |
| 69 base::WeakPtrFactory<StreamTexture> weak_factory_; | 72 base::WeakPtrFactory<StreamTexture> weak_factory_; |
| 70 DISALLOW_COPY_AND_ASSIGN(StreamTexture); | 73 DISALLOW_COPY_AND_ASSIGN(StreamTexture); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace content | 76 } // namespace content |
| 74 | 77 |
| 75 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ | 78 #endif // CONTENT_COMMON_GPU_STREAM_TEXTURE_ANDROID_H_ |
| OLD | NEW |