summarylogtreecommitdiffstats
path: root/0007-cbindgen-0_29_4.patch
blob: 43e9883c7bdca52c10e7d22de3d3446ef21d136a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# HG changeset patch
# User Emilio Cobos Álvarez <emilio@crisal.io>
# Date 1781042684 0
# Node ID 5c2c449c8f6149561d7e4bd831f84704a710cea7
# Parent  b6c97168cd840b71472e81622ed13ee368631f9a
Bug 2046162 - Remove some redundant pub qualifiers. r=gfx-reviewers,aosmond

The enum is not public so this doesn't change behavior but a patch I'm
working on in cbindgen gets a bit confused with this.

Differential Revision: https://phabricator.services.mozilla.com/D305678


diff --git a/gfx/wr/webrender/src/texture_cache.rs b/gfx/wr/webrender/src/texture_cache.rs
--- a/gfx/wr/webrender/src/texture_cache.rs
+++ b/gfx/wr/webrender/src/texture_cache.rs
@@ -268,29 +268,29 @@ enum BudgetType {
     SharedColor8Glyphs,
     SharedAlpha8,
     SharedAlpha8Glyphs,
     SharedAlpha16,
     Standalone,
 }
 
 impl BudgetType {
-    pub const COUNT: usize = 7;
+    const COUNT: usize = 7;
 
-    pub const VALUES: [BudgetType; BudgetType::COUNT] = [
+    const VALUES: [BudgetType; BudgetType::COUNT] = [
         BudgetType::SharedColor8Linear,
         BudgetType::SharedColor8Nearest,
         BudgetType::SharedColor8Glyphs,
         BudgetType::SharedAlpha8,
         BudgetType::SharedAlpha8Glyphs,
         BudgetType::SharedAlpha16,
         BudgetType::Standalone,
     ];
 
-    pub const PRESSURE_COUNTERS: [usize; BudgetType::COUNT] = [
+    const PRESSURE_COUNTERS: [usize; BudgetType::COUNT] = [
         profiler::ATLAS_COLOR8_LINEAR_PRESSURE,
         profiler::ATLAS_COLOR8_NEAREST_PRESSURE,
         profiler::ATLAS_COLOR8_GLYPHS_PRESSURE,
         profiler::ATLAS_ALPHA8_PRESSURE,
         profiler::ATLAS_ALPHA8_GLYPHS_PRESSURE,
         profiler::ATLAS_ALPHA16_PRESSURE,
         profiler::ATLAS_STANDALONE_PRESSURE,
     ];