Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 132233041: Add gpu::MailboxHolder to hold state for a gpu::Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ff7262fa Rebase. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 cc::TextureMailbox texture_mailbox; 1423 cc::TextureMailbox texture_mailbox;
1424 scoped_ptr<cc::SingleReleaseCallback> release_callback; 1424 scoped_ptr<cc::SingleReleaseCallback> release_callback;
1425 result->TakeTexture(&texture_mailbox, &release_callback); 1425 result->TakeTexture(&texture_mailbox, &release_callback);
1426 DCHECK(texture_mailbox.IsTexture()); 1426 DCHECK(texture_mailbox.IsTexture());
1427 if (!texture_mailbox.IsTexture()) 1427 if (!texture_mailbox.IsTexture())
1428 return; 1428 return;
1429 1429
1430 ignore_result(scoped_callback_runner.Release()); 1430 ignore_result(scoped_callback_runner.Release());
1431 1431
1432 gl_helper->CropScaleReadbackAndCleanMailbox( 1432 gl_helper->CropScaleReadbackAndCleanMailbox(
1433 texture_mailbox.name(), 1433 texture_mailbox.mailbox(),
1434 texture_mailbox.sync_point(), 1434 texture_mailbox.sync_point(),
1435 result->size(), 1435 result->size(),
1436 gfx::Rect(result->size()), 1436 gfx::Rect(result->size()),
1437 dst_size_in_pixel, 1437 dst_size_in_pixel,
1438 pixels, 1438 pixels,
1439 bitmap_config, 1439 bitmap_config,
1440 base::Bind(&CopyFromCompositingSurfaceFinished, 1440 base::Bind(&CopyFromCompositingSurfaceFinished,
1441 callback, 1441 callback,
1442 base::Passed(&release_callback), 1442 base::Passed(&release_callback),
1443 base::Passed(&bitmap), 1443 base::Passed(&bitmap),
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 // RenderWidgetHostView, public: 1492 // RenderWidgetHostView, public:
1493 1493
1494 // static 1494 // static
1495 RenderWidgetHostView* 1495 RenderWidgetHostView*
1496 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 1496 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
1497 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 1497 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
1498 return new RenderWidgetHostViewAndroid(rwhi, NULL); 1498 return new RenderWidgetHostViewAndroid(rwhi, NULL);
1499 } 1499 }
1500 1500
1501 } // namespace content 1501 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698