| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_GL_ASYNC_TASK_DELEGATE_STUB_H_ | 5 #ifndef UI_GL_ASYNC_TASK_DELEGATE_STUB_H_ |
| 6 #define UI_GL_ASYNC_TASK_DELEGATE_STUB_H_ | 6 #define UI_GL_ASYNC_TASK_DELEGATE_STUB_H_ |
| 7 | 7 |
| 8 #include "ui/gl/async_pixel_transfer_delegate.h" | 8 #include "ui/gl/async_pixel_transfer_delegate.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const AsyncMemoryParams& mem_params, | 43 const AsyncMemoryParams& mem_params, |
| 44 const base::Closure& bind_callback) OVERRIDE; | 44 const base::Closure& bind_callback) OVERRIDE; |
| 45 virtual void AsyncTexSubImage2D( | 45 virtual void AsyncTexSubImage2D( |
| 46 AsyncPixelTransferState* transfer_state, | 46 AsyncPixelTransferState* transfer_state, |
| 47 const AsyncTexSubImage2DParams& tex_params, | 47 const AsyncTexSubImage2DParams& tex_params, |
| 48 const AsyncMemoryParams& mem_params) OVERRIDE; | 48 const AsyncMemoryParams& mem_params) OVERRIDE; |
| 49 virtual void WaitForTransferCompletion( | 49 virtual void WaitForTransferCompletion( |
| 50 AsyncPixelTransferState* state) OVERRIDE; | 50 AsyncPixelTransferState* state) OVERRIDE; |
| 51 virtual uint32 GetTextureUploadCount() OVERRIDE; | 51 virtual uint32 GetTextureUploadCount() OVERRIDE; |
| 52 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; | 52 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; |
| 53 virtual bool ProcessMorePendingTransfers() OVERRIDE; |
| 54 virtual bool NeedsProcessMorePendingTransfers() OVERRIDE; |
| 53 private: | 55 private: |
| 54 // implement AsyncPixelTransferDelegate: | 56 // implement AsyncPixelTransferDelegate: |
| 55 virtual AsyncPixelTransferState* | 57 virtual AsyncPixelTransferState* |
| 56 CreateRawPixelTransferState(GLuint texture_id, | 58 CreateRawPixelTransferState(GLuint texture_id, |
| 57 const AsyncTexImage2DParams& define_params) OVERRIDE; | 59 const AsyncTexImage2DParams& define_params) OVERRIDE; |
| 58 | 60 |
| 59 int texture_upload_count_; | 61 int texture_upload_count_; |
| 60 base::TimeDelta total_texture_upload_time_; | 62 base::TimeDelta total_texture_upload_time_; |
| 61 | 63 |
| 62 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); | 64 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 } // namespace gfx | 67 } // namespace gfx |
| 66 | 68 |
| 67 #endif // UI_GL_ASYNC_TASK_DELEGATE_ANDROID_H_ | 69 #endif // UI_GL_ASYNC_TASK_DELEGATE_ANDROID_H_ |
| 68 | 70 |
| OLD | NEW |