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

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

Issue 11659020: gpu: Report time spent performing async texture uploads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef UI_GL_ASYNC_TASK_DELEGATE_H_
6 #define UI_GL_ASYNC_TASK_DELEGATE_H_ 6 #define UI_GL_ASYNC_TASK_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual void AsyncTexImage2D( 94 virtual void AsyncTexImage2D(
95 AsyncPixelTransferState* state, 95 AsyncPixelTransferState* state,
96 const AsyncTexImage2DParams& tex_params, 96 const AsyncTexImage2DParams& tex_params,
97 const AsyncMemoryParams& mem_params) = 0; 97 const AsyncMemoryParams& mem_params) = 0;
98 98
99 virtual void AsyncTexSubImage2D( 99 virtual void AsyncTexSubImage2D(
100 AsyncPixelTransferState* state, 100 AsyncPixelTransferState* state,
101 const AsyncTexSubImage2DParams& tex_params, 101 const AsyncTexSubImage2DParams& tex_params,
102 const AsyncMemoryParams& mem_params) = 0; 102 const AsyncMemoryParams& mem_params) = 0;
103 103
104 virtual uint32 GetTextureUploadCount() = 0;
105 virtual base::TimeDelta GetTotalTextureUploadTime() = 0;
106
104 protected: 107 protected:
105 AsyncPixelTransferDelegate() {} 108 AsyncPixelTransferDelegate() {}
106 // For testing, as returning scoped_ptr wouldn't work with MOCK_METHOD. 109 // For testing, as returning scoped_ptr wouldn't work with MOCK_METHOD.
107 virtual AsyncPixelTransferState* 110 virtual AsyncPixelTransferState*
108 CreateRawPixelTransferState(GLuint texture_id) = 0; 111 CreateRawPixelTransferState(GLuint texture_id) = 0;
109 112
110 private: 113 private:
111 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegate); 114 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferDelegate);
112 }; 115 };
113 116
114 } // namespace gfx 117 } // namespace gfx
115 118
116 #endif // UI_GL_ASYNC_TASK_DELEGATE_H_ 119 #endif // UI_GL_ASYNC_TASK_DELEGATE_H_
117 120
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698