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

Side by Side Diff: gpu/command_buffer/client/query_tracker.h

Issue 10834248: Clean-up inline members of nested classes (gpu/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GLES2_IMPL_EXPORT Created 8 years, 4 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 GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 public: 63 public:
64 class GLES2_IMPL_EXPORT Query { 64 class GLES2_IMPL_EXPORT Query {
65 public: 65 public:
66 enum State { 66 enum State {
67 kUninitialized, // never used 67 kUninitialized, // never used
68 kActive, // between begin - end 68 kActive, // between begin - end
69 kPending, // not yet complete 69 kPending, // not yet complete
70 kComplete // completed 70 kComplete // completed
71 }; 71 };
72 72
73 Query(GLuint id, GLenum target, const QuerySyncManager::QueryInfo& info) 73 Query(GLuint id, GLenum target, const QuerySyncManager::QueryInfo& info);
74 : id_(id),
75 target_(target),
76 info_(info),
77 state_(kUninitialized),
78 submit_count_(0),
79 token_(0),
80 flushed_(false),
81 result_(0) {
82 }
83 74
84 GLenum target() const { 75 GLenum target() const {
85 return target_; 76 return target_;
86 } 77 }
87 78
88 GLenum id() const { 79 GLenum id() const {
89 return id_; 80 return id_;
90 } 81 }
91 82
92 int32 shm_id() const { 83 int32 shm_id() const {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 QueryMap queries_; 149 QueryMap queries_;
159 QuerySyncManager query_sync_manager_; 150 QuerySyncManager query_sync_manager_;
160 151
161 DISALLOW_COPY_AND_ASSIGN(QueryTracker); 152 DISALLOW_COPY_AND_ASSIGN(QueryTracker);
162 }; 153 };
163 154
164 } // namespace gles2 155 } // namespace gles2
165 } // namespace gpu 156 } // namespace gpu
166 157
167 #endif // GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_ 158 #endif // GPU_COMMAND_BUFFER_CLIENT_QUERY_TRACKER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/client/query_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698