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

Side by Side Diff: content/renderer/render_thread_impl.cc

Issue 1129943006: Implement StreamTexture::BindTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 init_params, 1497 init_params,
1498 route_id, 1498 route_id,
1499 &result); 1499 &result);
1500 1500
1501 // Allow calling this from the compositor thread. 1501 // Allow calling this from the compositor thread.
1502 thread_safe_sender()->Send(message); 1502 thread_safe_sender()->Send(message);
1503 1503
1504 return result; 1504 return result;
1505 } 1505 }
1506 1506
1507 bool RenderThreadImpl::CreateStreamTexture(int32 image_id,
1508 int32 route_id,
1509 int32 stream_id) {
1510 TRACE_EVENT1("gpu", "RenderThreadImpl::CreateStreamTexture", "image_id",
1511 image_id);
1512 bool success = false;
1513 IPC::Message* message = new GpuHostMsg_CreateStreamTexture(
1514 image_id, route_id, stream_id, &success);
1515 // Allow calling this from the compositor thread.
1516 thread_safe_sender()->Send(message);
1517 return success;
1518 }
1519
1507 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { 1520 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() {
1508 notify_webkit_of_modal_loop_ = false; 1521 notify_webkit_of_modal_loop_ = false;
1509 } 1522 }
1510 1523
1511 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) { 1524 bool RenderThreadImpl::OnControlMessageReceived(const IPC::Message& msg) {
1512 base::ObserverListBase<RenderProcessObserver>::Iterator it(&observers_); 1525 base::ObserverListBase<RenderProcessObserver>::Iterator it(&observers_);
1513 RenderProcessObserver* observer; 1526 RenderProcessObserver* observer;
1514 while ((observer = it.GetNext()) != NULL) { 1527 while ((observer = it.GetNext()) != NULL) {
1515 if (observer->OnControlMessageReceived(msg)) 1528 if (observer->OnControlMessageReceived(msg))
1516 return true; 1529 return true;
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 } 1893 }
1881 1894
1882 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() { 1895 void RenderThreadImpl::PendingRenderFrameConnect::OnConnectionError() {
1883 size_t erased = 1896 size_t erased =
1884 RenderThreadImpl::current()->pending_render_frame_connects_.erase( 1897 RenderThreadImpl::current()->pending_render_frame_connects_.erase(
1885 routing_id_); 1898 routing_id_);
1886 DCHECK_EQ(1u, erased); 1899 DCHECK_EQ(1u, erased);
1887 } 1900 }
1888 1901
1889 } // namespace content 1902 } // namespace content
OLDNEW
« content/common/gpu/stream_texture_android.cc ('K') | « content/renderer/render_thread_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698