| Index: cc/scoped_resource.h
|
| diff --git a/cc/scoped_resource.h b/cc/scoped_resource.h
|
| deleted file mode 100644
|
| index 53b0ba18d44163c817d239db54f9e04bb97adb86..0000000000000000000000000000000000000000
|
| --- a/cc/scoped_resource.h
|
| +++ /dev/null
|
| @@ -1,48 +0,0 @@
|
| -// Copyright 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.
|
| -
|
| -#ifndef CC_SCOPED_RESOURCE_H_
|
| -#define CC_SCOPED_RESOURCE_H_
|
| -
|
| -#include "base/basictypes.h"
|
| -#include "base/logging.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| -#include "cc/base/cc_export.h"
|
| -#include "cc/resource.h"
|
| -
|
| -#ifndef NDEBUG
|
| -#include "base/threading/platform_thread.h"
|
| -#endif
|
| -
|
| -namespace cc {
|
| -
|
| -class CC_EXPORT ScopedResource : public Resource {
|
| - public:
|
| - static scoped_ptr<ScopedResource> create(
|
| - ResourceProvider* resource_provider) {
|
| - return make_scoped_ptr(new ScopedResource(resource_provider));
|
| - }
|
| - virtual ~ScopedResource();
|
| -
|
| - bool Allocate(const gfx::Size&, GLenum format,
|
| - ResourceProvider::TextureUsageHint);
|
| - void Free();
|
| - void Leak();
|
| -
|
| - protected:
|
| - explicit ScopedResource(ResourceProvider*);
|
| -
|
| - private:
|
| - ResourceProvider* resource_provider_;
|
| -
|
| -#ifndef NDEBUG
|
| - base::PlatformThreadId allocate_thread_id_;
|
| -#endif
|
| -
|
| - DISALLOW_COPY_AND_ASSIGN(ScopedResource);
|
| -};
|
| -
|
| -}
|
| -
|
| -#endif // CC_SCOPED_RESOURCE_H_
|
|
|