| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
| 8 | 8 |
| 9 #include "CCTiledLayerImpl.h" | 9 #include "CCTiledLayerImpl.h" |
| 10 | 10 |
| 11 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
| 12 #include "CCAppendQuadsData.h" | 12 #include "CCAppendQuadsData.h" |
| 13 #include "CCCheckerboardDrawQuad.h" | 13 #include "CCCheckerboardDrawQuad.h" |
| 14 #include "CCDebugBorderDrawQuad.h" | 14 #include "CCDebugBorderDrawQuad.h" |
| 15 #include "CCLayerTilingData.h" | 15 #include "CCLayerTilingData.h" |
| 16 #include "CCMathUtil.h" | 16 #include "CCMathUtil.h" |
| 17 #include "CCQuadSink.h" | 17 #include "CCQuadSink.h" |
| 18 #include "CCSolidColorDrawQuad.h" | 18 #include "CCSolidColorDrawQuad.h" |
| 19 #include "CCTileDrawQuad.h" | 19 #include "CCTileDrawQuad.h" |
| 20 #include "FloatQuad.h" | 20 #include "FloatQuad.h" |
| 21 #include "GraphicsContext3D.h" | 21 #include "GraphicsContext3D.h" |
| 22 #include "SkColor.h" | 22 #include "SkColor.h" |
| 23 | 23 |
| 24 using namespace std; | 24 using namespace std; |
| 25 using WebKit::WebTransformationMatrix; | 25 using WebKit::WebTransformationMatrix; |
| 26 | 26 |
| 27 namespace WebCore { | 27 namespace cc { |
| 28 | 28 |
| 29 static const int debugTileBorderWidth = 1; | 29 static const int debugTileBorderWidth = 1; |
| 30 static const int debugTileBorderAlpha = 100; | 30 static const int debugTileBorderAlpha = 100; |
| 31 static const int debugTileBorderColorRed = 80; | 31 static const int debugTileBorderColorRed = 80; |
| 32 static const int debugTileBorderColorGreen = 200; | 32 static const int debugTileBorderColorGreen = 200; |
| 33 static const int debugTileBorderColorBlue = 200; | 33 static const int debugTileBorderColorBlue = 200; |
| 34 static const int debugTileBorderMissingTileColorRed = 255; | 34 static const int debugTileBorderMissingTileColorRed = 255; |
| 35 static const int debugTileBorderMissingTileColorGreen = 0; | 35 static const int debugTileBorderMissingTileColorGreen = 0; |
| 36 static const int debugTileBorderMissingTileColorBlue = 0; | 36 static const int debugTileBorderMissingTileColorBlue = 0; |
| 37 | 37 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 if (opaque()) | 207 if (opaque()) |
| 208 return visibleContentRect(); | 208 return visibleContentRect(); |
| 209 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); | 209 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); |
| 210 } | 210 } |
| 211 | 211 |
| 212 void CCTiledLayerImpl::didLoseContext() | 212 void CCTiledLayerImpl::didLoseContext() |
| 213 { | 213 { |
| 214 m_tiler->reset(); | 214 m_tiler->reset(); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace WebCore | 217 } // namespace cc |
| 218 | 218 |
| 219 #endif // USE(ACCELERATED_COMPOSITING) | 219 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |