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 "content/browser/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( | 249 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( |
250 const gfx::Rect& src_subrect, | 250 const gfx::Rect& src_subrect, |
251 const gfx::Size& dst_size, | 251 const gfx::Size& dst_size, |
252 const base::Callback<void(bool)>& callback, | 252 const base::Callback<void(bool)>& callback, |
253 skia::PlatformCanvas* output) { | 253 skia::PlatformCanvas* output) { |
254 NOTIMPLEMENTED(); | 254 NOTIMPLEMENTED(); |
255 callback.Run(false); | 255 callback.Run(false); |
256 } | 256 } |
257 | 257 |
258 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { | 258 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { |
259 const bool activated = host_->is_accelerated_compositing_active(); | |
260 if (content_view_core_) | |
261 content_view_core_->OnAcceleratedCompositingStateChange( | |
262 this, activated, false); | |
263 } | 259 } |
264 | 260 |
265 void RenderWidgetHostViewAndroid::AcceleratedSurfaceBuffersSwapped( | 261 void RenderWidgetHostViewAndroid::AcceleratedSurfaceBuffersSwapped( |
266 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 262 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
267 int gpu_host_id) { | 263 int gpu_host_id) { |
268 DrawDelegateImpl::GetInstance()->OnSurfaceUpdated( | 264 DrawDelegateImpl::GetInstance()->OnSurfaceUpdated( |
269 params.surface_handle, | 265 params.surface_handle, |
270 this, | 266 this, |
271 base::Bind(&RenderWidgetHostImpl::AcknowledgeBufferPresent, | 267 base::Bind(&RenderWidgetHostImpl::AcknowledgeBufferPresent, |
272 params.route_id, gpu_host_id)); | 268 params.route_id, gpu_host_id)); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 // RenderWidgetHostView, public: | 390 // RenderWidgetHostView, public: |
395 | 391 |
396 // static | 392 // static |
397 RenderWidgetHostView* | 393 RenderWidgetHostView* |
398 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 394 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
399 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 395 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
400 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 396 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
401 } | 397 } |
402 | 398 |
403 } // namespace content | 399 } // namespace content |
OLD | NEW |