Remove BufferView and inline offset/size in BindGroup

BUG=dawn:2

Change-Id: I811024c4ac3a6167dd0caff05eca3fbb2640e862
Reviewed-on: https://dawn-review.googlesource.com/c/2941
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Jiawei Shao <jiawei.shao@intel.com>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/dawn.json b/dawn.json
index 825ebb2..1a076ee 100644
--- a/dawn.json
+++ b/dawn.json
@@ -30,7 +30,9 @@
         "extensible": false,
         "members": [
             {"name": "binding", "type": "uint32_t"},
-            {"name": "buffer view", "type": "buffer view", "optional": true},
+            {"name": "buffer", "type": "buffer", "optional": true},
+            {"name": "offset", "type": "uint32_t"},
+            {"name": "size", "type": "uint32_t"},
             {"name": "sampler", "type": "sampler", "optional": true},
             {"name": "texture view", "type": "texture view", "optional": true}
         ]
@@ -165,10 +167,6 @@
         "category": "object",
         "methods": [
             {
-                "name": "create buffer view builder",
-                "returns": "buffer view builder"
-            },
-            {
                 "name": "set sub data",
                 "args": [
                     {"name": "start", "type": "uint32_t"},
@@ -264,25 +262,6 @@
             {"value": 128, "name": "storage"}
         ]
     },
-    "buffer view": {
-        "category": "object"
-    },
-    "buffer view builder": {
-        "category": "object",
-        "methods": [
-            {
-                "name": "get result",
-                "returns": "buffer view"
-            },
-            {
-                "name": "set extent",
-                "args": [
-                    {"name": "offset", "type": "uint32_t"},
-                    {"name": "size", "type": "uint32_t"}
-                ]
-            }
-        ]
-    },
     "callback userdata": {
         "category": "natively defined"
     },