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

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

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win_aura DCHECK() Created 8 years 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/client/gl_helper.cc ('k') | content/common/gpu/gpu_messages.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(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 FastSetActiveURL(active_url_, active_url_hash_); 129 FastSetActiveURL(active_url_, active_url_hash_);
130 if (share_group) { 130 if (share_group) {
131 context_group_ = share_group->context_group_; 131 context_group_ = share_group->context_group_;
132 } else { 132 } else {
133 context_group_ = new gpu::gles2::ContextGroup( 133 context_group_ = new gpu::gles2::ContextGroup(
134 mailbox_manager, 134 mailbox_manager,
135 image_manager, 135 image_manager,
136 new GpuCommandBufferMemoryTracker(channel), 136 new GpuCommandBufferMemoryTracker(channel),
137 true); 137 true);
138 } 138 }
139 if (handle_.sync_point)
140 OnWaitSyncPoint(handle_.sync_point);
141 } 139 }
142 140
143 GpuCommandBufferStub::~GpuCommandBufferStub() { 141 GpuCommandBufferStub::~GpuCommandBufferStub() {
144 Destroy(); 142 Destroy();
145 143
146 GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager(); 144 GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager();
147 gpu_channel_manager->Send(new GpuHostMsg_DestroyCommandBuffer(surface_id())); 145 gpu_channel_manager->Send(new GpuHostMsg_DestroyCommandBuffer(surface_id()));
148 } 146 }
149 147
150 GpuMemoryManager* GpuCommandBufferStub::GetMemoryManager() { 148 GpuMemoryManager* GpuCommandBufferStub::GetMemoryManager() {
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 // made current before calling methods on the surface. 911 // made current before calling methods on the surface.
914 if (!surface_ || !MakeCurrent()) 912 if (!surface_ || !MakeCurrent())
915 return; 913 return;
916 surface_->SetFrontbufferAllocation( 914 surface_->SetFrontbufferAllocation(
917 allocation.browser_allocation.suggest_have_frontbuffer); 915 allocation.browser_allocation.suggest_have_frontbuffer);
918 } 916 }
919 917
920 } // namespace content 918 } // namespace content
921 919
922 #endif // defined(ENABLE_GPU) 920 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « content/common/gpu/client/gl_helper.cc ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698