Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: ui/gl/async_pixel_transfer_delegate_stub.h

Issue 11659020: gpu: Report time spent performing async texture uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 27 matching lines...) Expand all
38 // implement AsyncPixelTransferDelegate: 38 // implement AsyncPixelTransferDelegate:
39 virtual void AsyncNotifyCompletion(const base::Closure& task) OVERRIDE; 39 virtual void AsyncNotifyCompletion(const base::Closure& task) OVERRIDE;
40 virtual void AsyncTexImage2D( 40 virtual void AsyncTexImage2D(
41 AsyncPixelTransferState* transfer_state, 41 AsyncPixelTransferState* transfer_state,
42 const AsyncTexImage2DParams& tex_params, 42 const AsyncTexImage2DParams& tex_params,
43 const AsyncMemoryParams& mem_params) OVERRIDE; 43 const AsyncMemoryParams& mem_params) OVERRIDE;
44 virtual void AsyncTexSubImage2D( 44 virtual void AsyncTexSubImage2D(
45 AsyncPixelTransferState* transfer_state, 45 AsyncPixelTransferState* transfer_state,
46 const AsyncTexSubImage2DParams& tex_params, 46 const AsyncTexSubImage2DParams& tex_params,
47 const AsyncMemoryParams& mem_params) OVERRIDE; 47 const AsyncMemoryParams& mem_params) OVERRIDE;
48 virtual uint32 GetTextureUploadCount() OVERRIDE;
49 virtual base::TimeDelta GetTotalTextureUploadTime() OVERRIDE;
48 private: 50 private:
49 // implement AsyncPixelTransferDelegate: 51 // implement AsyncPixelTransferDelegate:
50 virtual AsyncPixelTransferState* 52 virtual AsyncPixelTransferState*
51 CreateRawPixelTransferState(GLuint texture_id) OVERRIDE; 53 CreateRawPixelTransferState(GLuint texture_id) OVERRIDE;
52 54
55 int texture_upload_count_;
56 base::TimeDelta total_texture_upload_time_;
57
53 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub); 58 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegateStub);
54 }; 59 };
55 60
56 } // namespace gfx 61 } // namespace gfx
57 62
58 #endif // UI_GL_ASYNC_TASK_DELEGATE_ANDROID_H_ 63 #endif // UI_GL_ASYNC_TASK_DELEGATE_ANDROID_H_
59 64
OLDNEW
« no previous file with comments | « ui/gl/async_pixel_transfer_delegate_android.cc ('k') | ui/gl/async_pixel_transfer_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698