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

Unified Diff: gpu/ipc/service/stream_texture_android.cc

Issue 2420083004: Delete SurfaceTexturePeer (Closed)
Patch Set: Fix missed references Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/ipc/service/stream_texture_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/service/stream_texture_android.cc
diff --git a/gpu/ipc/service/stream_texture_android.cc b/gpu/ipc/service/stream_texture_android.cc
index d1070051f3d8f391f3d7e4cd8d69fbea0bace6a0..173dab8284f25d03e2e7944fd5c9dd4c756945a8 100644
--- a/gpu/ipc/service/stream_texture_android.cc
+++ b/gpu/ipc/service/stream_texture_android.cc
@@ -12,7 +12,6 @@
#include "gpu/command_buffer/service/gles2_cmd_decoder.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/ipc/common/android/scoped_surface_request_conduit.h"
-#include "gpu/ipc/common/android/surface_texture_peer.h"
#include "gpu/ipc/common/gpu_messages.h"
#include "gpu/ipc/service/gpu_channel.h"
#include "ui/gfx/geometry/size.h"
@@ -198,7 +197,6 @@ bool StreamTexture::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(GpuStreamTextureMsg_StartListening, OnStartListening)
IPC_MESSAGE_HANDLER(GpuStreamTextureMsg_ForwardForSurfaceRequest,
OnForwardForSurfaceRequest)
- IPC_MESSAGE_HANDLER(GpuStreamTextureMsg_EstablishPeer, OnEstablishPeer)
IPC_MESSAGE_HANDLER(GpuStreamTextureMsg_SetSize, OnSetSize)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -212,16 +210,6 @@ void StreamTexture::OnStartListening() {
has_listener_ = true;
}
-void StreamTexture::OnEstablishPeer(int32_t primary_id, int32_t secondary_id) {
- if (!owner_stub_)
- return;
-
- base::ProcessHandle process = owner_stub_->channel()->GetClientPID();
-
- SurfaceTexturePeer::GetInstance()->EstablishSurfaceTexturePeer(
- process, surface_texture_, primary_id, secondary_id);
-}
-
void StreamTexture::OnForwardForSurfaceRequest(
const base::UnguessableToken& request_token) {
if (!owner_stub_)
« no previous file with comments | « gpu/ipc/service/stream_texture_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698