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

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.cc

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.h ('k') | gpu/ipc/service/stream_texture_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "gpu/ipc/service/gpu_command_buffer_stub.h" 5 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 command_buffer_->SetSharedStateBuffer(MakeBackingFromSharedMemory( 637 command_buffer_->SetSharedStateBuffer(MakeBackingFromSharedMemory(
638 std::move(shared_state_shm), kSharedStateSize)); 638 std::move(shared_state_shm), kSharedStateSize));
639 639
640 if (offscreen && !active_url_.is_empty()) 640 if (offscreen && !active_url_.is_empty())
641 manager->delegate()->DidCreateOffscreenContext(active_url_); 641 manager->delegate()->DidCreateOffscreenContext(active_url_);
642 642
643 initialized_ = true; 643 initialized_ = true;
644 return true; 644 return true;
645 } 645 }
646 646
647 void GpuCommandBufferStub::OnCreateStreamTexture(uint32_t texture_id, 647 void GpuCommandBufferStub::OnCreateStreamTexture(int32_t image_id,
648 int32_t stream_id, 648 int32_t stream_id,
649 bool* succeeded) { 649 bool* succeeded) {
650 #if defined(OS_ANDROID) 650 #if defined(OS_ANDROID)
651 *succeeded = StreamTexture::Create(this, texture_id, stream_id); 651 *succeeded = StreamTexture::Create(this, image_id, stream_id);
652 #else 652 #else
653 *succeeded = false; 653 *succeeded = false;
654 #endif 654 #endif
655 } 655 }
656 656
657 void GpuCommandBufferStub::SetLatencyInfoCallback( 657 void GpuCommandBufferStub::SetLatencyInfoCallback(
658 const LatencyInfoCallback& callback) { 658 const LatencyInfoCallback& callback) {
659 latency_info_callback_ = callback; 659 latency_info_callback_ = callback;
660 } 660 }
661 661
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params)); 1113 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params));
1114 } 1114 }
1115 1115
1116 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1116 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1117 base::TimeDelta interval) { 1117 base::TimeDelta interval) {
1118 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1118 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1119 interval)); 1119 interval));
1120 } 1120 }
1121 1121
1122 } // namespace gpu 1122 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.h ('k') | gpu/ipc/service/stream_texture_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698