| Index: gpu/command_buffer/service/texture_manager.h
|
| ===================================================================
|
| --- gpu/command_buffer/service/texture_manager.h (revision 78636)
|
| +++ gpu/command_buffer/service/texture_manager.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 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.
|
|
|
| @@ -40,7 +40,8 @@
|
| max_level_set_(-1),
|
| texture_complete_(false),
|
| cube_complete_(false),
|
| - npot_(false) {
|
| + npot_(false),
|
| + owned_(true) {
|
| }
|
|
|
| // True if this texture meets all the GLES2 criteria for rendering.
|
| @@ -109,6 +110,10 @@
|
| return target() && !IsDeleted();
|
| }
|
|
|
| + void SetNotOwned() {
|
| + owned_ = false;
|
| + }
|
| +
|
| private:
|
| friend class TextureManager;
|
| friend class base::RefCounted<TextureInfo>;
|
| @@ -217,6 +222,10 @@
|
| // Whether this texture has ever been bound.
|
| bool has_been_bound_;
|
|
|
| + // Whether the associated context group owns this texture and should delete
|
| + // it.
|
| + bool owned_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TextureInfo);
|
| };
|
|
|
|
|