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

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

Issue 105743004: Add gpu::MailboxHolder to hold state for a gpu::Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cc2a95fe Android fixes. Created 7 years 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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 cc::TextureMailbox texture_mailbox; 1364 cc::TextureMailbox texture_mailbox;
1365 scoped_ptr<cc::SingleReleaseCallback> release_callback; 1365 scoped_ptr<cc::SingleReleaseCallback> release_callback;
1366 result->TakeTexture(&texture_mailbox, &release_callback); 1366 result->TakeTexture(&texture_mailbox, &release_callback);
1367 DCHECK(texture_mailbox.IsTexture()); 1367 DCHECK(texture_mailbox.IsTexture());
1368 if (!texture_mailbox.IsTexture()) 1368 if (!texture_mailbox.IsTexture())
1369 return; 1369 return;
1370 1370
1371 ignore_result(scoped_callback_runner.Release()); 1371 ignore_result(scoped_callback_runner.Release());
1372 1372
1373 gl_helper->CropScaleReadbackAndCleanMailbox( 1373 gl_helper->CropScaleReadbackAndCleanMailbox(
1374 texture_mailbox.name(), 1374 texture_mailbox.mailbox(),
1375 texture_mailbox.sync_point(), 1375 texture_mailbox.sync_point(),
1376 result->size(), 1376 result->size(),
1377 gfx::Rect(result->size()), 1377 gfx::Rect(result->size()),
1378 dst_size_in_pixel, 1378 dst_size_in_pixel,
1379 pixels, 1379 pixels,
1380 base::Bind(&CopyFromCompositingSurfaceFinished, 1380 base::Bind(&CopyFromCompositingSurfaceFinished,
1381 callback, 1381 callback,
1382 base::Passed(&release_callback), 1382 base::Passed(&release_callback),
1383 base::Passed(&bitmap), 1383 base::Passed(&bitmap),
1384 base::Passed(&bitmap_pixels_lock))); 1384 base::Passed(&bitmap_pixels_lock)));
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 // RenderWidgetHostView, public: 1427 // RenderWidgetHostView, public:
1428 1428
1429 // static 1429 // static
1430 RenderWidgetHostView* 1430 RenderWidgetHostView*
1431 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 1431 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
1432 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 1432 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
1433 return new RenderWidgetHostViewAndroid(rwhi, NULL); 1433 return new RenderWidgetHostViewAndroid(rwhi, NULL);
1434 } 1434 }
1435 1435
1436 } // namespace content 1436 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698