diff options
Diffstat (limited to 'gpu/command_buffer/service/buffer_manager.h')
-rw-r--r-- | gpu/command_buffer/service/buffer_manager.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gpu/command_buffer/service/buffer_manager.h b/gpu/command_buffer/service/buffer_manager.h index d59f755..32be176 100644 --- a/gpu/command_buffer/service/buffer_manager.h +++ b/gpu/command_buffer/service/buffer_manager.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -28,7 +28,7 @@ class BufferManager { public: typedef scoped_refptr<BufferInfo> Ref; - explicit BufferInfo(GLuint service_id); + BufferInfo(BufferManager* manager, GLuint service_id); GLuint service_id() const { return service_id_; @@ -122,6 +122,9 @@ class BufferManager { // Clears any cache of index ranges. void ClearCache(); + // The manager that owns this BufferInfo. + BufferManager* manager_; + // Service side buffer id. GLuint service_id_; @@ -179,6 +182,8 @@ class BufferManager { private: void UpdateMemRepresented(); + void StopTracking(BufferInfo* info); + // Info for each buffer in the system. typedef base::hash_map<GLuint, BufferInfo::Ref> BufferInfoMap; BufferInfoMap buffer_infos_; |