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

Side by Side Diff: cc/debug/test_texture.h

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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/debug/test_context_support.cc ('k') | cc/debug/test_texture.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/memory/ref_counted.h"
6 #include "base/memory/scoped_ptr.h"
7 #include "cc/base/cc_export.h"
8 #include "cc/resources/resource_format.h"
9 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
10 #include "ui/gfx/rect.h"
11
12 #ifndef CC_DEBUG_TEST_TEXTURE_H_
13 #define CC_DEBUG_TEST_TEXTURE_H_
14
15 namespace cc {
16
17 size_t CC_EXPORT TextureSizeBytes(gfx::Size size, ResourceFormat format);
18
19 struct CC_EXPORT TestTexture : public base::RefCounted<TestTexture> {
20 TestTexture();
21
22 void Reallocate(gfx::Size size, ResourceFormat format);
23
24 gfx::Size size;
25 ResourceFormat format;
26 scoped_ptr<uint8_t[]> data;
27
28 // TODO(mvujovic): Replace this with a hash map of texture parameter names
29 // and values, which can hold this filter parameter value and more.
30 WebKit::WGC3Denum filter;
31
32 private:
33 friend class base::RefCounted<TestTexture>;
34 ~TestTexture();
35 };
36
37 } // namespace cc
38
39 #endif // CC_DEBUG_TEST_TEXTURE_H_
OLDNEW
« no previous file with comments | « cc/debug/test_context_support.cc ('k') | cc/debug/test_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698