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

Unified Diff: cc/test/test_texture.h

Issue 1531403002: Revert "Delete CC." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years 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/test/test_task_graph_runner.cc ('k') | cc/test/test_texture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_texture.h
diff --git a/cc/test/test_texture.h b/cc/test/test_texture.h
new file mode 100644
index 0000000000000000000000000000000000000000..926558977626751f6c31d17a385c184415f14a81
--- /dev/null
+++ b/cc/test/test_texture.h
@@ -0,0 +1,40 @@
+// 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.
+
+#ifndef CC_TEST_TEST_TEXTURE_H_
+#define CC_TEST_TEST_TEXTURE_H_
+
+#include "base/containers/hash_tables.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
+#include "cc/resources/resource_format.h"
+#include "third_party/khronos/GLES2/gl2.h"
+#include "ui/gfx/geometry/size.h"
+
+namespace cc {
+
+size_t TextureSizeBytes(const gfx::Size& size, ResourceFormat format);
+
+struct TestTexture : public base::RefCounted<TestTexture> {
+ TestTexture();
+
+ void Reallocate(const gfx::Size& size, ResourceFormat format);
+ bool IsValidParameter(GLenum pname);
+
+ gfx::Size size;
+ ResourceFormat format;
+ scoped_ptr<uint8_t[]> data;
+
+ typedef base::hash_map<GLenum, GLint>
+ TextureParametersMap;
+ TextureParametersMap params;
+
+ private:
+ friend class base::RefCounted<TestTexture>;
+ ~TestTexture();
+};
+
+} // namespace cc
+
+#endif // CC_TEST_TEST_TEXTURE_H_
« no previous file with comments | « cc/test/test_task_graph_runner.cc ('k') | cc/test/test_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698