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

Unified Diff: cc/CCScopedTexture.cpp

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CCScopedTexture.h ('k') | cc/CCScopedThreadProxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCScopedTexture.cpp
diff --git a/cc/CCScopedTexture.cpp b/cc/CCScopedTexture.cpp
deleted file mode 100644
index d43ebe33019e1af0237353540c75736cd3c33db7..0000000000000000000000000000000000000000
--- a/cc/CCScopedTexture.cpp
+++ /dev/null
@@ -1,51 +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.
-
-#include "config.h"
-
-#include "CCScopedTexture.h"
-
-namespace cc {
-
-CCScopedTexture::CCScopedTexture(CCResourceProvider* resourceProvider)
- : m_resourceProvider(resourceProvider)
-{
- ASSERT(m_resourceProvider);
-}
-
-CCScopedTexture::~CCScopedTexture()
-{
- free();
-}
-
-bool CCScopedTexture::allocate(int pool, const IntSize& size, GC3Denum format, CCResourceProvider::TextureUsageHint hint)
-{
- ASSERT(!id());
- ASSERT(!size.isEmpty());
-
- setDimensions(size, format);
- setId(m_resourceProvider->createResource(pool, size, format, hint));
-
-#if !ASSERT_DISABLED
- m_allocateThreadIdentifier = base::PlatformThread::CurrentId();
-#endif
-
- return id();
-}
-
-void CCScopedTexture::free()
-{
- if (id()) {
- ASSERT(m_allocateThreadIdentifier == base::PlatformThread::CurrentId());
- m_resourceProvider->deleteResource(id());
- }
- setId(0);
-}
-
-void CCScopedTexture::leak()
-{
- setId(0);
-}
-
-}
« no previous file with comments | « cc/CCScopedTexture.h ('k') | cc/CCScopedThreadProxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698