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

Unified Diff: chrome/common/gpu_feature_flags.cc

Issue 6672064: Move gpu_feature_flags from chrome\common to content\browser since it's only ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « chrome/common/gpu_feature_flags.h ('k') | chrome/common/gpu_feature_flags_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/gpu_feature_flags.cc
===================================================================
--- chrome/common/gpu_feature_flags.cc (revision 78449)
+++ chrome/common/gpu_feature_flags.cc (working copy)
@@ -1,48 +0,0 @@
-// Copyright (c) 2010 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 "chrome/common/gpu_feature_flags.h"
-
-#include "base/logging.h"
-
-const char GpuFeatureFlags::kGpuFeatureNameAccelerated2dCanvas[] =
- "accelerated_2d_canvas";
-const char GpuFeatureFlags::kGpuFeatureNameAcceleratedCompositing[] =
- "accelerated_compositing";
-const char GpuFeatureFlags::kGpuFeatureNameWebgl[] = "webgl";
-const char GpuFeatureFlags::kGpuFeatureNameMultisampling[] = "multisampling";
-const char GpuFeatureFlags::kGpuFeatureNameAll[] = "all";
-
-GpuFeatureFlags::GpuFeatureFlags()
- : flags_(0) {
-}
-
-void GpuFeatureFlags::set_flags(uint32 flags) {
- DCHECK_EQ(flags & (~kGpuFeatureAll), 0u);
- flags_ = flags;
-}
-
-uint32 GpuFeatureFlags::flags() const {
- return flags_;
-}
-
-void GpuFeatureFlags::Combine(const GpuFeatureFlags& other) {
- flags_ |= other.flags_;
-}
-
-GpuFeatureFlags::GpuFeatureType GpuFeatureFlags::StringToGpuFeatureType(
- const std::string& feature_string) {
- if (feature_string == kGpuFeatureNameAccelerated2dCanvas)
- return kGpuFeatureAccelerated2dCanvas;
- else if (feature_string == kGpuFeatureNameAcceleratedCompositing)
- return kGpuFeatureAcceleratedCompositing;
- else if (feature_string == kGpuFeatureNameWebgl)
- return kGpuFeatureWebgl;
- else if (feature_string == kGpuFeatureNameMultisampling)
- return kGpuFeatureMultisampling;
- else if (feature_string == kGpuFeatureNameAll)
- return kGpuFeatureAll;
- return kGpuFeatureUnknown;
-}
-
« no previous file with comments | « chrome/common/gpu_feature_flags.h ('k') | chrome/common/gpu_feature_flags_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698