// 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 "base/memory/ref_counted.h" #include "base/memory/scoped_ptr.h" #include "cc/base/cc_export.h" #include "cc/resources/resource_format.h" #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" #include "ui/gfx/rect.h" #ifndef CC_DEBUG_TEST_TEXTURE_H_ #define CC_DEBUG_TEST_TEXTURE_H_ namespace cc { size_t CC_EXPORT TextureSizeBytes(gfx::Size size, ResourceFormat format); struct CC_EXPORT TestTexture : public base::RefCounted { TestTexture(); void Reallocate(gfx::Size size, ResourceFormat format); gfx::Size size; ResourceFormat format; scoped_ptr data; // TODO(mvujovic): Replace this with a hash map of texture parameter names // and values, which can hold this filter parameter value and more. WebKit::WGC3Denum filter; private: friend class base::RefCounted; ~TestTexture(); }; } // namespace cc #endif // CC_DEBUG_TEST_TEXTURE_H_