| 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 "CCResourceProvider.h" | 7 #include "CCResourceProvider.h" |
| 8 #ifdef LOG | 8 #ifdef LOG |
| 9 #undef LOG | 9 #undef LOG |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "base/string_split.h" | 12 #include "base/string_split.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "CCProxy.h" | 14 #include "CCProxy.h" |
| 15 #include "CCRendererGL.h" // For the GLC() macro. | 15 #include "CCRendererGL.h" // For the GLC() macro. |
| 16 #include "Extensions3DChromium.h" | 16 #include "Extensions3DChromium.h" |
| 17 #include "IntRect.h" | 17 #include "IntRect.h" |
| 18 #include "LayerTextureSubImage.h" | 18 #include "LayerTextureSubImage.h" |
| 19 #include <limits.h> | 19 #include <limits.h> |
| 20 #include <public/WebGraphicsContext3D.h> | 20 #include <public/WebGraphicsContext3D.h> |
| 21 #include <wtf/HashSet.h> | 21 #include <wtf/HashSet.h> |
| 22 | 22 |
| 23 using WebKit::WebGraphicsContext3D; | 23 using WebKit::WebGraphicsContext3D; |
| 24 | 24 |
| 25 namespace WebCore { | 25 namespace cc { |
| 26 | 26 |
| 27 static GC3Denum textureToStorageFormat(GC3Denum textureFormat) | 27 static GC3Denum textureToStorageFormat(GC3Denum textureFormat) |
| 28 { | 28 { |
| 29 GC3Denum storageFormat = Extensions3D::RGBA8_OES; | 29 GC3Denum storageFormat = Extensions3D::RGBA8_OES; |
| 30 switch (textureFormat) { | 30 switch (textureFormat) { |
| 31 case GraphicsContext3D::RGBA: | 31 case GraphicsContext3D::RGBA: |
| 32 break; | 32 break; |
| 33 case Extensions3D::BGRA_EXT: | 33 case Extensions3D::BGRA_EXT: |
| 34 storageFormat = Extensions3DChromium::BGRA8_EXT; | 34 storageFormat = Extensions3DChromium::BGRA8_EXT; |
| 35 break; | 35 break; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 for (ResourceMap::iterator it = m_resources.begin(); it != m_resources.e
nd(); ++it) { | 539 for (ResourceMap::iterator it = m_resources.begin(); it != m_resources.e
nd(); ++it) { |
| 540 if (childPoolSet.contains(it->second.pool)) | 540 if (childPoolSet.contains(it->second.pool)) |
| 541 ++maxMailboxCount; | 541 ++maxMailboxCount; |
| 542 } | 542 } |
| 543 } | 543 } |
| 544 while (m_mailboxes.size() > maxMailboxCount) | 544 while (m_mailboxes.size() > maxMailboxCount) |
| 545 m_mailboxes.removeFirst(); | 545 m_mailboxes.removeFirst(); |
| 546 } | 546 } |
| 547 | 547 |
| 548 } | 548 } |
| OLD | NEW |