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

Side by Side Diff: content/browser/gpu/gpu_blacklist.cc

Issue 15745014: Move GPU device/driver info related code from content to gpu. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 7 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/gpu/gpu_blacklist.h ('k') | content/browser/gpu/gpu_blacklist_unittest.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 (c) 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 "content/browser/gpu/gpu_blacklist.h"
6
7 #include "content/public/common/gpu_feature_type.h"
8
9 namespace content {
10
11 GpuBlacklist::GpuBlacklist()
12 : GpuControlList() {
13 }
14
15 GpuBlacklist::~GpuBlacklist() {
16 }
17
18 // static
19 GpuBlacklist* GpuBlacklist::Create() {
20 GpuBlacklist* list = new GpuBlacklist();
21 list->AddSupportedFeature("accelerated_2d_canvas",
22 GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS);
23 list->AddSupportedFeature("accelerated_compositing",
24 GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING);
25 list->AddSupportedFeature("webgl",
26 GPU_FEATURE_TYPE_WEBGL);
27 list->AddSupportedFeature("multisampling",
28 GPU_FEATURE_TYPE_MULTISAMPLING);
29 list->AddSupportedFeature("flash_3d",
30 GPU_FEATURE_TYPE_FLASH3D);
31 list->AddSupportedFeature("flash_stage3d",
32 GPU_FEATURE_TYPE_FLASH_STAGE3D);
33 list->AddSupportedFeature("flash_stage3d_baseline",
34 GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE);
35 list->AddSupportedFeature("texture_sharing",
36 GPU_FEATURE_TYPE_TEXTURE_SHARING);
37 list->AddSupportedFeature("accelerated_video_decode",
38 GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE);
39 list->AddSupportedFeature("3d_css",
40 GPU_FEATURE_TYPE_3D_CSS);
41 list->AddSupportedFeature("accelerated_video",
42 GPU_FEATURE_TYPE_ACCELERATED_VIDEO);
43 list->AddSupportedFeature("panel_fitting",
44 GPU_FEATURE_TYPE_PANEL_FITTING);
45 list->AddSupportedFeature("force_compositing_mode",
46 GPU_FEATURE_TYPE_FORCE_COMPOSITING_MODE);
47 list->set_supports_feature_type_all(true);
48 return list;
49 }
50
51 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_blacklist.h ('k') | content/browser/gpu/gpu_blacklist_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698