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

Unified Diff: cc/CCTexture.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/CCTexture.h ('k') | cc/CCTextureDrawQuad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCTexture.cpp
diff --git a/cc/CCTexture.cpp b/cc/CCTexture.cpp
deleted file mode 100644
index add842922efefe1b1d9d1a360a2f45289e725aab..0000000000000000000000000000000000000000
--- a/cc/CCTexture.cpp
+++ /dev/null
@@ -1,32 +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 "CCTexture.h"
-
-namespace cc {
-
-void CCTexture::setDimensions(const IntSize& size, GC3Denum format)
-{
- m_size = size;
- m_format = format;
-}
-
-size_t CCTexture::bytes() const
-{
- if (m_size.isEmpty())
- return 0u;
-
- return memorySizeBytes(m_size, m_format);
-}
-
-size_t CCTexture::memorySizeBytes(const IntSize& size, GC3Denum format)
-{
- unsigned int componentsPerPixel = 4;
- unsigned int bytesPerComponent = 1;
- return componentsPerPixel * bytesPerComponent * size.width() * size.height();
-}
-
-}
« no previous file with comments | « cc/CCTexture.h ('k') | cc/CCTextureDrawQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698