| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 | 5 |
| 6 #include "config.h" | 6 #include "config.h" |
| 7 | 7 |
| 8 #if USE(ACCELERATED_COMPOSITING) | 8 #if USE(ACCELERATED_COMPOSITING) |
| 9 #include "CCRendererGL.h" | 9 #include "CCRendererGL.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include <string> | 41 #include <string> |
| 42 #include <vector> | 42 #include <vector> |
| 43 #include <wtf/CurrentTime.h> | 43 #include <wtf/CurrentTime.h> |
| 44 | 44 |
| 45 using namespace std; | 45 using namespace std; |
| 46 using WebKit::WebGraphicsContext3D; | 46 using WebKit::WebGraphicsContext3D; |
| 47 using WebKit::WebGraphicsMemoryAllocation; | 47 using WebKit::WebGraphicsMemoryAllocation; |
| 48 using WebKit::WebSharedGraphicsContext3D; | 48 using WebKit::WebSharedGraphicsContext3D; |
| 49 using WebKit::WebTransformationMatrix; | 49 using WebKit::WebTransformationMatrix; |
| 50 | 50 |
| 51 namespace WebCore { | 51 namespace cc { |
| 52 | 52 |
| 53 namespace { | 53 namespace { |
| 54 | 54 |
| 55 bool needsIOSurfaceReadbackWorkaround() | 55 bool needsIOSurfaceReadbackWorkaround() |
| 56 { | 56 { |
| 57 #if OS(DARWIN) | 57 #if OS(DARWIN) |
| 58 return true; | 58 return true; |
| 59 #else | 59 #else |
| 60 return false; | 60 return false; |
| 61 #endif | 61 #endif |
| (...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 m_textureUploader.clear(); | 1517 m_textureUploader.clear(); |
| 1518 | 1518 |
| 1519 releaseRenderPassTextures(); | 1519 releaseRenderPassTextures(); |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 bool CCRendererGL::isContextLost() | 1522 bool CCRendererGL::isContextLost() |
| 1523 { | 1523 { |
| 1524 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO
R); | 1524 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO
R); |
| 1525 } | 1525 } |
| 1526 | 1526 |
| 1527 } // namespace WebCore | 1527 } // namespace cc |
| 1528 | 1528 |
| 1529 #endif // USE(ACCELERATED_COMPOSITING) | 1529 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |