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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/resource_provider.h" | 7 #include "cc/resource_provider.h" |
8 | 8 |
9 #include <limits.h> | 9 #include <limits.h> |
10 | 10 |
11 #include "CCProxy.h" | |
12 #include "IntRect.h" | 11 #include "IntRect.h" |
13 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
14 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
15 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
16 #include "base/string_split.h" | 15 #include "base/string_split.h" |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "cc/gl_renderer.h" // For the GLC() macro. | 17 #include "cc/gl_renderer.h" // For the GLC() macro. |
| 18 #include "cc/proxy.h" |
19 #include "cc/texture_uploader.h" | 19 #include "cc/texture_uploader.h" |
20 #include "third_party/khronos/GLES2/gl2.h" | 20 #include "third_party/khronos/GLES2/gl2.h" |
21 #include "third_party/khronos/GLES2/gl2ext.h" | 21 #include "third_party/khronos/GLES2/gl2ext.h" |
22 | 22 |
23 #include <public/WebGraphicsContext3D.h> | 23 #include <public/WebGraphicsContext3D.h> |
24 | 24 |
25 using WebKit::WebGraphicsContext3D; | 25 using WebKit::WebGraphicsContext3D; |
26 | 26 |
27 namespace cc { | 27 namespace cc { |
28 | 28 |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 for (ResourceMap::iterator it = m_resources.begin(); it != m_resources.e
nd(); ++it) { | 672 for (ResourceMap::iterator it = m_resources.begin(); it != m_resources.e
nd(); ++it) { |
673 if (ContainsKey(childPoolSet, it->second.pool)) | 673 if (ContainsKey(childPoolSet, it->second.pool)) |
674 ++maxMailboxCount; | 674 ++maxMailboxCount; |
675 } | 675 } |
676 } | 676 } |
677 while (m_mailboxes.size() > maxMailboxCount) | 677 while (m_mailboxes.size() > maxMailboxCount) |
678 m_mailboxes.pop_front(); | 678 m_mailboxes.pop_front(); |
679 } | 679 } |
680 | 680 |
681 } | 681 } |
OLD | NEW |