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

Unified Diff: cc/debug/test_texture.cc

Issue 50303007: Move test-only stuff from cc/debug/ to cc/test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fold cc_test_utils into cc_test_support to fix windows link Created 7 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/debug/test_texture.h ('k') | cc/debug/test_web_graphics_context_3d.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/debug/test_texture.cc
diff --git a/cc/debug/test_texture.cc b/cc/debug/test_texture.cc
deleted file mode 100644
index 5ab84a4f3a1e65ead945b1291feae6fac4fe743d..0000000000000000000000000000000000000000
--- a/cc/debug/test_texture.cc
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2013 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 "cc/debug/test_texture.h"
-
-#include "third_party/khronos/GLES2/gl2.h"
-
-namespace cc {
-
-size_t TextureSizeBytes(gfx::Size size, ResourceFormat format) {
- unsigned int components_per_pixel = 4;
- unsigned int bytes_per_component = 1;
- return size.width() * size.height() * components_per_pixel *
- bytes_per_component;
-}
-
-TestTexture::TestTexture()
- : format(RGBA_8888), filter(GL_NEAREST_MIPMAP_LINEAR) {}
-
-TestTexture::~TestTexture() {}
-
-void TestTexture::Reallocate(gfx::Size size, ResourceFormat format) {
- this->size = size;
- this->format = format;
- this->data.reset(new uint8_t[TextureSizeBytes(size, format)]);
-}
-
-} // namespace cc
« no previous file with comments | « cc/debug/test_texture.h ('k') | cc/debug/test_web_graphics_context_3d.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698