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/resource_provider.h" | 5 #include "cc/resource_provider.h" |
6 | 6 |
7 #include <limits.h> | 7 #include <limits.h> |
8 | 8 |
9 #include "base/debug/alias.h" | 9 #include "base/debug/alias.h" |
10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "base/string_split.h" | |
13 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/strings/string_split.h" |
14 #include "cc/context_provider.h" | 14 #include "cc/context_provider.h" |
15 #include "cc/gl_renderer.h" // For the GLC() macro. | 15 #include "cc/gl_renderer.h" // For the GLC() macro. |
16 #include "cc/platform_color.h" | 16 #include "cc/platform_color.h" |
17 #include "cc/texture_uploader.h" | 17 #include "cc/texture_uploader.h" |
18 #include "cc/transferable_resource.h" | 18 #include "cc/transferable_resource.h" |
19 #include "gpu/GLES2/gl2extchromium.h" | 19 #include "gpu/GLES2/gl2extchromium.h" |
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 20 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
21 #include "third_party/khronos/GLES2/gl2.h" | 21 #include "third_party/khronos/GLES2/gl2.h" |
22 #include "third_party/khronos/GLES2/gl2ext.h" | 22 #include "third_party/khronos/GLES2/gl2ext.h" |
23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1148 resource->enableReadLockFences = enable; | 1148 resource->enableReadLockFences = enable; |
1149 } | 1149 } |
1150 | 1150 |
1151 void ResourceProvider::setOffscreenContextProvider(scoped_refptr<cc::ContextProv
ider> offscreenContextProvider) { | 1151 void ResourceProvider::setOffscreenContextProvider(scoped_refptr<cc::ContextProv
ider> offscreenContextProvider) { |
1152 if (offscreenContextProvider) | 1152 if (offscreenContextProvider) |
1153 offscreenContextProvider->BindToCurrentThread(); | 1153 offscreenContextProvider->BindToCurrentThread(); |
1154 m_offscreenContextProvider = offscreenContextProvider; | 1154 m_offscreenContextProvider = offscreenContextProvider; |
1155 } | 1155 } |
1156 | 1156 |
1157 } // namespace cc | 1157 } // namespace cc |
OLD | NEW |