| 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 22 matching lines...) Expand all Loading... |
| 33 #undef LOG | 33 #undef LOG |
| 34 #endif | 34 #endif |
| 35 #include "base/string_split.h" | 35 #include "base/string_split.h" |
| 36 #include <public/WebGraphicsContext3D.h> | 36 #include <public/WebGraphicsContext3D.h> |
| 37 #include <public/WebSharedGraphicsContext3D.h> | 37 #include <public/WebSharedGraphicsContext3D.h> |
| 38 #include <public/WebVideoFrame.h> | 38 #include <public/WebVideoFrame.h> |
| 39 #include <set> | 39 #include <set> |
| 40 #include <string> | 40 #include <string> |
| 41 #include <vector> | 41 #include <vector> |
| 42 #include <wtf/CurrentTime.h> | 42 #include <wtf/CurrentTime.h> |
| 43 #include <wtf/MainThread.h> | |
| 44 | 43 |
| 45 using namespace std; | 44 using namespace std; |
| 46 using WebKit::WebGraphicsContext3D; | 45 using WebKit::WebGraphicsContext3D; |
| 47 using WebKit::WebGraphicsMemoryAllocation; | 46 using WebKit::WebGraphicsMemoryAllocation; |
| 48 using WebKit::WebSharedGraphicsContext3D; | 47 using WebKit::WebSharedGraphicsContext3D; |
| 49 using WebKit::WebTransformationMatrix; | 48 using WebKit::WebTransformationMatrix; |
| 50 | 49 |
| 51 namespace WebCore { | 50 namespace WebCore { |
| 52 | 51 |
| 53 namespace { | 52 namespace { |
| (...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 } | 1502 } |
| 1504 | 1503 |
| 1505 bool CCRendererGL::isContextLost() | 1504 bool CCRendererGL::isContextLost() |
| 1506 { | 1505 { |
| 1507 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO
R); | 1506 return (m_context->getGraphicsResetStatusARB() != GraphicsContext3D::NO_ERRO
R); |
| 1508 } | 1507 } |
| 1509 | 1508 |
| 1510 } // namespace WebCore | 1509 } // namespace WebCore |
| 1511 | 1510 |
| 1512 #endif // USE(ACCELERATED_COMPOSITING) | 1511 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |