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 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
8 #include "CCFontAtlas.h" | 8 #include "CCFontAtlas.h" |
9 | 9 |
10 #include "base/string_split.h" | 10 #include "base/string_split.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 { | 64 { |
65 ASSERT(CCProxy::isImplThread()); | 65 ASSERT(CCProxy::isImplThread()); |
66 | 66 |
67 SkIRect source = SkIRect::MakeWH(m_atlas.width(), m_atlas.height()); | 67 SkIRect source = SkIRect::MakeWH(m_atlas.width(), m_atlas.height()); |
68 canvas->drawBitmapRect(m_atlas, &source, SkRect::MakeXYWH(destPosition.x(),
destPosition.y(), m_atlas.width(), m_atlas.height())); | 68 canvas->drawBitmapRect(m_atlas, &source, SkRect::MakeXYWH(destPosition.x(),
destPosition.y(), m_atlas.width(), m_atlas.height())); |
69 } | 69 } |
70 | 70 |
71 } // namespace cc | 71 } // namespace cc |
72 | 72 |
73 #endif // USE(ACCELERATED_COMPOSITING) | 73 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |