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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 59973010: Android: Don't instantiate TextureImageTransportSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 060d02eabc19449e31831161d29651960492540c..750b10303aa4ffd1af7b0efe51b6387112ae3663 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -55,17 +55,6 @@ namespace {
const int kUndefinedOutputSurfaceId = -1;
const int kMinimumPointerDistance = 50;
-void InsertSyncPointAndAckForGpu(
- int gpu_host_id, int route_id, const std::string& return_mailbox) {
- uint32 sync_point =
- ImageTransportFactoryAndroid::GetInstance()->InsertSyncPoint();
- AcceleratedSurfaceMsg_BufferPresented_Params ack_params;
- ack_params.mailbox_name = return_mailbox;
- ack_params.sync_point = sync_point;
- RenderWidgetHostImpl::AcknowledgeBufferPresent(
- route_id, gpu_host_id, ack_params);
-}
-
void InsertSyncPointAndAckForCompositor(
int renderer_host_id,
uint32 output_surface_id,
@@ -828,31 +817,7 @@ void RenderWidgetHostViewAndroid::UpdateContentViewCoreFrameMetadata(
void RenderWidgetHostViewAndroid::AcceleratedSurfaceBuffersSwapped(
const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
int gpu_host_id) {
- NOTREACHED() << "Deprecated. Use --composite-to-mailbox.";
-
- if (params.mailbox_name.empty())
- return;
-
- std::string return_mailbox;
- if (!current_mailbox_.IsZero()) {
- return_mailbox.assign(
- reinterpret_cast<const char*>(current_mailbox_.name),
- sizeof(current_mailbox_.name));
- }
-
- base::Closure callback = base::Bind(&InsertSyncPointAndAckForGpu,
- gpu_host_id, params.route_id,
- return_mailbox);
-
- gpu::Mailbox mailbox;
- std::copy(params.mailbox_name.data(),
- params.mailbox_name.data() + params.mailbox_name.length(),
- reinterpret_cast<char*>(mailbox.name));
-
- texture_size_in_layer_ = params.size;
- content_size_in_layer_ = params.size;
-
- BuffersSwapped(mailbox, kUndefinedOutputSurfaceId, callback);
+ NOTREACHED() << "Need --composite-to-mailbox or --enable-delegated-renderer";
}
void RenderWidgetHostViewAndroid::BuffersSwapped(
@@ -1000,7 +965,7 @@ gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() {
}
gfx::GLSurfaceHandle RenderWidgetHostViewAndroid::GetCompositingSurface() {
- return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::TEXTURE_TRANSPORT);
+ return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::NATIVE_TRANSPORT);
}
void RenderWidgetHostViewAndroid::ProcessAckedTouchEvent(
« no previous file with comments | « no previous file | content/common/gpu/image_transport_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698