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

Side by Side Diff: gpu/config/gpu_driver_bug_workarounds.h

Issue 1871613002: Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
6 #define GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
7
8 #include "base/macros.h"
9 #include "build/build_config.h"
10 #include "gpu/command_buffer/service/common_decoder.h"
11 #include "gpu/config/gpu_driver_bug_workaround_type.h"
12 #include "gpu/gpu_export.h"
13
14 namespace base {
15 class CommandLine;
16 }
17
18 namespace gpu {
19
20 struct GPU_EXPORT GpuDriverBugWorkarounds {
21 public:
22 static void Initialize(GpuDriverBugWorkarounds& workarounds);
piman 2016/04/12 04:38:44 If you make this (and below) like: static GpuDrive
23 static void Initialize(const base::CommandLine* command_line,
24 GpuDriverBugWorkarounds& workarounds);
25 GpuDriverBugWorkarounds();
26
27 GpuDriverBugWorkarounds(const GpuDriverBugWorkarounds& other);
28
29 ~GpuDriverBugWorkarounds();
30
31 #define GPU_OP(type, name) bool name;
32 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP)
33 #undef GPU_OP
34
35 // Note: 0 here means use driver limit.
36 GLint max_texture_size;
37 GLint max_cube_map_texture_size;
38 GLint max_fragment_uniform_vectors;
39 GLint max_varying_vectors;
40 GLint max_vertex_uniform_vectors;
41 GLint max_copy_texture_chromium_size;
42 };
43
44 GPU_EXPORT void StringToWorkarounds(const std::string& types,
45 GpuDriverBugWorkarounds* workarounds);
46
47 } // namespace gpu
48
49 #endif // GPU_CONFIG_GPU_DRIVER_BUG_WORKAROUNDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698