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

Side by Side Diff: content/common/gpu/gpu_channel.cc

Issue 12717013: Add reference-counting for mailbox textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add optional 'pool' reference while textures are in mailbox Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « content/common/gpu/gpu_channel.h ('k') | content/common/gpu/gpu_channel_manager.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 #if defined(OS_WIN) 5 #if defined(OS_WIN)
6 #include <windows.h> 6 #include <windows.h>
7 #endif 7 #endif
8 8
9 #include "content/common/gpu/gpu_channel.h" 9 #include "content/common/gpu/gpu_channel.h"
10 10
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 filter_, messages_processed_)); 938 filter_, messages_processed_));
939 } 939 }
940 } 940 }
941 941
942 void GpuChannel::CacheShader(const std::string& key, 942 void GpuChannel::CacheShader(const std::string& key,
943 const std::string& shader) { 943 const std::string& shader) {
944 gpu_channel_manager_->Send( 944 gpu_channel_manager_->Send(
945 new GpuHostMsg_CacheShader(client_id_, key, shader)); 945 new GpuHostMsg_CacheShader(client_id_, key, shader));
946 } 946 }
947 947
948 void GpuChannel::OnDestroySurface(int route_id, int surface_id) {
949 GpuCommandBufferStub* stub = LookupCommandBuffer(route_id);
950 if (stub)
951 stub->OnDestroySurface(surface_id);
952 }
953
948 } // namespace content 954 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.h ('k') | content/common/gpu/gpu_channel_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698