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

Unified Diff: cc/PlatformColor.h

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/LayerTextureUpdater.cpp ('k') | cc/ProgramBinding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/PlatformColor.h
diff --git a/cc/PlatformColor.h b/cc/PlatformColor.h
index 61ffd31bd49c71a28a62dbb7893b5a8befcdb781..24690aa6a66732fc8f6342cd6efebb9ca5fa0abf 100644
--- a/cc/PlatformColor.h
+++ b/cc/PlatformColor.h
@@ -1,58 +1,6 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
+// 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.
-#ifndef PlatformColor_h
-#define PlatformColor_h
-
-#include "Extensions3D.h"
-#include "GraphicsContext3D.h"
-#include "SkTypes.h"
-#include <public/WebGraphicsContext3D.h>
-
-namespace cc {
-
-class PlatformColor {
-public:
- static GraphicsContext3D::SourceDataFormat format()
- {
- return SK_B32_SHIFT ? GraphicsContext3D::SourceFormatRGBA8 : GraphicsContext3D::SourceFormatBGRA8;
- }
-
- // Returns the most efficient texture format for this platform.
- static GC3Denum bestTextureFormat(WebKit::WebGraphicsContext3D* context, bool supportsBGRA8888)
- {
- GC3Denum textureFormat = GraphicsContext3D::RGBA;
- switch (format()) {
- case GraphicsContext3D::SourceFormatRGBA8:
- break;
- case GraphicsContext3D::SourceFormatBGRA8:
- if (supportsBGRA8888)
- textureFormat = Extensions3D::BGRA_EXT;
- break;
- default:
- ASSERT_NOT_REACHED();
- break;
- }
- return textureFormat;
- }
-
- // Return true if the given texture format has the same component order
- // as the color on this platform.
- static bool sameComponentOrder(GC3Denum textureFormat)
- {
- switch (format()) {
- case GraphicsContext3D::SourceFormatRGBA8:
- return textureFormat == GraphicsContext3D::RGBA;
- case GraphicsContext3D::SourceFormatBGRA8:
- return textureFormat == Extensions3D::BGRA_EXT;
- default:
- ASSERT_NOT_REACHED();
- return false;
- }
- }
-};
-
-} // namespace cc
-
-#endif
+// Temporary forwarding header
+#include "cc/platform_color.h"
« no previous file with comments | « cc/LayerTextureUpdater.cpp ('k') | cc/ProgramBinding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698