| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "android_webview/renderer/aw_render_view_ext.h" | 5 #include "android_webview/renderer/aw_render_view_ext.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "android_webview/common/aw_hit_test_data.h" | 9 #include "android_webview/common/aw_hit_test_data.h" |
| 10 #include "android_webview/common/render_view_messages.h" | 10 #include "android_webview/common/render_view_messages.h" |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 Send(new AwViewHostMsg_UpdateHitTestData(routing_id(), data)); | 193 Send(new AwViewHostMsg_UpdateHitTestData(routing_id(), data)); |
| 194 } | 194 } |
| 195 | 195 |
| 196 void AwRenderViewExt::OnEnableCapturePictureCallback(bool enable) { | 196 void AwRenderViewExt::OnEnableCapturePictureCallback(bool enable) { |
| 197 // TODO(leandrogracia): enable once the feature is available in RenderView. | 197 // TODO(leandrogracia): enable once the feature is available in RenderView. |
| 198 //render_view()->SetCapturePictureCallback(enable ? | 198 //render_view()->SetCapturePictureCallback(enable ? |
| 199 // base::Bind(&AwRenderViewExt::OnPictureUpdate, AsWeakPtr()) : | 199 // base::Bind(&AwRenderViewExt::OnPictureUpdate, AsWeakPtr()) : |
| 200 // content::RenderView::CapturePictureCallback()); | 200 // content::RenderView::CapturePictureCallback()); |
| 201 } | 201 } |
| 202 | 202 |
| 203 void AwRenderViewExt::OnPictureUpdate( | 203 void AwRenderViewExt::OnPictureUpdate(skia::RefPtr<SkPicture> picture) { |
| 204 scoped_refptr<cc::PicturePileImpl> picture) { | |
| 205 RendererPictureMap::GetInstance()->SetRendererPicture(routing_id(), picture); | 204 RendererPictureMap::GetInstance()->SetRendererPicture(routing_id(), picture); |
| 206 Send(new AwViewHostMsg_PictureUpdated(routing_id())); | 205 Send(new AwViewHostMsg_PictureUpdated(routing_id())); |
| 207 } | 206 } |
| 208 | 207 |
| 209 } // namespace android_webview | 208 } // namespace android_webview |
| OLD | NEW |