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 21 matching lines...) Expand all Loading... |
32 static scoped_ptr<AsyncPixelTransferDelegate> | 32 static scoped_ptr<AsyncPixelTransferDelegate> |
33 Create(gfx::GLContext* context); | 33 Create(gfx::GLContext* context); |
34 | 34 |
35 AsyncPixelTransferDelegateStub(); | 35 AsyncPixelTransferDelegateStub(); |
36 virtual ~AsyncPixelTransferDelegateStub(); | 36 virtual ~AsyncPixelTransferDelegateStub(); |
37 | 37 |
38 // implement AsyncPixelTransferDelegate: | 38 // implement AsyncPixelTransferDelegate: |
39 virtual void AsyncNotifyCompletion( | 39 virtual void AsyncNotifyCompletion( |
40 const AsyncMemoryParams& mem_params, | 40 const AsyncMemoryParams& mem_params, |
41 const CompletionCallback& callback) OVERRIDE; | 41 const CompletionCallback& callback) OVERRIDE; |
| 42 virtual void WaitOnUploadCompletion() OVERRIDE; |
42 virtual void AsyncTexImage2D( | 43 virtual void AsyncTexImage2D( |
43 AsyncPixelTransferState* transfer_state, | 44 AsyncPixelTransferState* transfer_state, |
44 const AsyncTexImage2DParams& tex_params, | 45 const AsyncTexImage2DParams& tex_params, |
45 const AsyncMemoryParams& mem_params) OVERRIDE; | 46 const AsyncMemoryParams& mem_params) OVERRIDE; |
46 virtual void AsyncTexSubImage2D( | 47 virtual void AsyncTexSubImage2D( |
47 AsyncPixelTransferState* transfer_state, | 48 AsyncPixelTransferState* transfer_state, |
48 const AsyncTexSubImage2DParams& tex_params, | 49 const AsyncTexSubImage2DParams& tex_params, |
49 const AsyncMemoryParams& mem_params) OVERRIDE; | 50 const AsyncMemoryParams& mem_params) OVERRIDE; |
50 virtual uint32 GetTextureUploadCount() OVERRIDE; | 51 virtual uint32 GetTextureUploadCount() OVERRIDE; |
51 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; | 52 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE; |
52 private: | 53 private: |
53 // implement AsyncPixelTransferDelegate: | 54 // implement AsyncPixelTransferDelegate: |
54 virtual AsyncPixelTransferState* | 55 virtual AsyncPixelTransferState* |
55 CreateRawPixelTransferState(GLuint texture_id) OVERRIDE; | 56 CreateRawPixelTransferState(GLuint texture_id) OVERRIDE; |
56 | 57 |
57 int texture_upload_count_; | 58 int texture_upload_count_; |
58 base::TimeDelta total_texture_upload_time_; | 59 base::TimeDelta total_texture_upload_time_; |
59 | 60 |
60 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); | 61 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); |
61 }; | 62 }; |
62 | 63 |
63 } // namespace gfx | 64 } // namespace gfx |
64 | 65 |
65 #endif // UI_GL_ASYNC_TASK_DELEGATE_ANDROID_H_ | 66 #endif // UI_GL_ASYNC_TASK_DELEGATE_ANDROID_H_ |
66 | 67 |
OLD | NEW |