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

Side by Side Diff: gpu/command_buffer/service/query_manager.h

Issue 1199313008: Allowed GLES query target migration between binary occlusion types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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_SERVICE_QUERY_MANAGER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_QUERY_MANAGER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_QUERY_MANAGER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_QUERY_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 #include "base/atomicops.h" 10 #include "base/atomicops.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Returns false if shared memory for sync is invalid. 63 // Returns false if shared memory for sync is invalid.
64 virtual bool End(base::subtle::Atomic32 submit_count) = 0; 64 virtual bool End(base::subtle::Atomic32 submit_count) = 0;
65 65
66 // Returns false if shared memory for sync is invalid. 66 // Returns false if shared memory for sync is invalid.
67 virtual bool Process(bool did_finish) = 0; 67 virtual bool Process(bool did_finish) = 0;
68 68
69 virtual void Destroy(bool have_context) = 0; 69 virtual void Destroy(bool have_context) = 0;
70 70
71 void AddCallback(base::Closure callback); 71 void AddCallback(base::Closure callback);
72 72
73 bool UpdateTarget(GLenum target);
74
73 protected: 75 protected:
74 virtual ~Query(); 76 virtual ~Query();
75 77
76 QueryManager* manager() const { 78 QueryManager* manager() const {
77 return manager_; 79 return manager_;
78 } 80 }
79 81
80 void MarkAsDeleted() { 82 void MarkAsDeleted() {
81 deleted_ = true; 83 deleted_ = true;
82 } 84 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 // Async pixel transfer queries waiting for completion. 243 // Async pixel transfer queries waiting for completion.
242 QueryQueue pending_transfer_queries_; 244 QueryQueue pending_transfer_queries_;
243 245
244 DISALLOW_COPY_AND_ASSIGN(QueryManager); 246 DISALLOW_COPY_AND_ASSIGN(QueryManager);
245 }; 247 };
246 248
247 } // namespace gles2 249 } // namespace gles2
248 } // namespace gpu 250 } // namespace gpu
249 251
250 #endif // GPU_COMMAND_BUFFER_SERVICE_QUERY_MANAGER_H_ 252 #endif // GPU_COMMAND_BUFFER_SERVICE_QUERY_MANAGER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/query_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698