OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/resources/resource_provider.h" | 5 #include "cc/resources/resource_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
| 10 #include "base/containers/hash_tables.h" |
10 #include "base/debug/alias.h" | 11 #include "base/debug/alias.h" |
11 #include "base/hash_tables.h" | |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
15 #include "cc/output/gl_renderer.h" // For the GLC() macro. | 15 #include "cc/output/gl_renderer.h" // For the GLC() macro. |
16 #include "cc/resources/platform_color.h" | 16 #include "cc/resources/platform_color.h" |
17 #include "cc/resources/transferable_resource.h" | 17 #include "cc/resources/transferable_resource.h" |
18 #include "cc/scheduler/texture_uploader.h" | 18 #include "cc/scheduler/texture_uploader.h" |
19 #include "gpu/GLES2/gl2extchromium.h" | 19 #include "gpu/GLES2/gl2extchromium.h" |
20 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 20 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
21 #include "third_party/khronos/GLES2/gl2.h" | 21 #include "third_party/khronos/GLES2/gl2.h" |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 | 1421 |
1422 WebGraphicsContext3D* context3d = output_surface_->context3d(); | 1422 WebGraphicsContext3D* context3d = output_surface_->context3d(); |
1423 DCHECK(context3d); | 1423 DCHECK(context3d); |
1424 int stride = 0; | 1424 int stride = 0; |
1425 context3d->getImageParameterivCHROMIUM( | 1425 context3d->getImageParameterivCHROMIUM( |
1426 resource->image_id, GL_IMAGE_ROWBYTES_CHROMIUM, &stride); | 1426 resource->image_id, GL_IMAGE_ROWBYTES_CHROMIUM, &stride); |
1427 return stride; | 1427 return stride; |
1428 } | 1428 } |
1429 | 1429 |
1430 } // namespace cc | 1430 } // namespace cc |
OLD | NEW |