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 <android/bitmap.h> | 7 #include <android/bitmap.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 texture_layer_->layer()->setBounds( | 372 texture_layer_->layer()->setBounds( |
373 DrawDelegateImpl::GetInstance()->GetBounds()); | 373 DrawDelegateImpl::GetInstance()->GetBounds()); |
374 | 374 |
375 // TODO(sievers): When running the impl thread in the browser we | 375 // TODO(sievers): When running the impl thread in the browser we |
376 // need to delay the ACK until after commit. | 376 // need to delay the ACK until after commit. |
377 DCHECK(!WebKit::Platform::current()->compositorSupport()-> | 377 DCHECK(!WebKit::Platform::current()->compositorSupport()-> |
378 isThreadingEnabled()); | 378 isThreadingEnabled()); |
379 uint32 sync_point = | 379 uint32 sync_point = |
380 ImageTransportFactoryAndroid::GetInstance()->InsertSyncPoint(); | 380 ImageTransportFactoryAndroid::GetInstance()->InsertSyncPoint(); |
381 RenderWidgetHostImpl::AcknowledgeBufferPresent( | 381 RenderWidgetHostImpl::AcknowledgeBufferPresent( |
382 params.route_id, gpu_host_id, sync_point); | 382 params.route_id, gpu_host_id, true, sync_point); |
383 } | 383 } |
384 | 384 |
385 void RenderWidgetHostViewAndroid::AcceleratedSurfacePostSubBuffer( | 385 void RenderWidgetHostViewAndroid::AcceleratedSurfacePostSubBuffer( |
386 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 386 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
387 int gpu_host_id) { | 387 int gpu_host_id) { |
388 NOTREACHED(); | 388 NOTREACHED(); |
389 } | 389 } |
390 | 390 |
391 void RenderWidgetHostViewAndroid::AcceleratedSurfaceSuspend() { | 391 void RenderWidgetHostViewAndroid::AcceleratedSurfaceSuspend() { |
392 NOTREACHED(); | 392 NOTREACHED(); |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 // RenderWidgetHostView, public: | 566 // RenderWidgetHostView, public: |
567 | 567 |
568 // static | 568 // static |
569 RenderWidgetHostView* | 569 RenderWidgetHostView* |
570 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 570 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
571 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 571 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
572 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 572 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
573 } | 573 } |
574 | 574 |
575 } // namespace content | 575 } // namespace content |
OLD | NEW |