| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 { | 67 { |
| 68 return (m_private.get() == n.m_private.get()); | 68 return (m_private.get() == n.m_private.get()); |
| 69 } | 69 } |
| 70 | 70 |
| 71 bool WebLayerTreeView::initialize(WebLayerTreeViewClient* client, const WebLayer
& root, const WebLayerTreeView::Settings& settings) | 71 bool WebLayerTreeView::initialize(WebLayerTreeViewClient* client, const WebLayer
& root, const WebLayerTreeView::Settings& settings) |
| 72 { | 72 { |
| 73 m_private = WebLayerTreeViewImpl::create(client, root, settings); | 73 m_private = WebLayerTreeViewImpl::create(client, root, settings); |
| 74 return !isNull(); | 74 return !isNull(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void WebLayerTreeView::setSurfaceReady() |
| 78 { |
| 79 m_private->setSurfaceReady(); |
| 80 } |
| 81 |
| 77 void WebLayerTreeView::setRootLayer(WebLayer *root) | 82 void WebLayerTreeView::setRootLayer(WebLayer *root) |
| 78 { | 83 { |
| 79 if (root) | 84 if (root) |
| 80 m_private->setRootLayer(*root); | 85 m_private->setRootLayer(*root); |
| 81 else | 86 else |
| 82 m_private->setRootLayer(PassRefPtr<LayerChromium>()); | 87 m_private->setRootLayer(PassRefPtr<LayerChromium>()); |
| 83 } | 88 } |
| 84 | 89 |
| 85 int WebLayerTreeView::compositorIdentifier() | 90 int WebLayerTreeView::compositorIdentifier() |
| 86 { | 91 { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 { | 164 { |
| 160 return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_private->cont
ext()); | 165 return GraphicsContext3DPrivate::extractWebGraphicsContext3D(m_private->cont
ext()); |
| 161 } | 166 } |
| 162 | 167 |
| 163 void WebLayerTreeView::loseCompositorContext(int numTimes) | 168 void WebLayerTreeView::loseCompositorContext(int numTimes) |
| 164 { | 169 { |
| 165 m_private->loseContext(numTimes); | 170 m_private->loseContext(numTimes); |
| 166 } | 171 } |
| 167 | 172 |
| 168 } // namespace WebKit | 173 } // namespace WebKit |
| OLD | NEW |