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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 8411002: Fix a smart pointer leak. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/renderer_host/render_widget_host_view_views.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/renderer_host/backing_store_skia.h" 8 #include "content/browser/renderer_host/backing_store_skia.h"
9 #include "content/browser/renderer_host/web_input_event_aura.h" 9 #include "content/browser/renderer_host/web_input_event_aura.h"
10 #include "content/browser/renderer_host/render_widget_host.h" 10 #include "content/browser/renderer_host/render_widget_host.h"
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 uint64* surface_id, 234 uint64* surface_id,
235 TransportDIB::Handle* surface_handle) { 235 TransportDIB::Handle* surface_handle) {
236 scoped_ptr<AcceleratedSurfaceContainerLinux> surface( 236 scoped_ptr<AcceleratedSurfaceContainerLinux> surface(
237 AcceleratedSurfaceContainerLinux::Create(gfx::Size(width, height))); 237 AcceleratedSurfaceContainerLinux::Create(gfx::Size(width, height)));
238 if (!surface->Initialize(surface_id)) { 238 if (!surface->Initialize(surface_id)) {
239 LOG(ERROR) << "Failed to create AcceleratedSurfaceContainer"; 239 LOG(ERROR) << "Failed to create AcceleratedSurfaceContainer";
240 return; 240 return;
241 } 241 }
242 *surface_handle = surface->Handle(); 242 *surface_handle = surface->Handle();
243 243
244 accelerated_surface_containers_[*surface_id] = surface.release(); 244 accelerated_surface_containers_[*surface_id] = surface;
245 } 245 }
246 246
247 void RenderWidgetHostViewAura::AcceleratedSurfaceBuffersSwapped( 247 void RenderWidgetHostViewAura::AcceleratedSurfaceBuffersSwapped(
248 uint64 surface_id, 248 uint64 surface_id,
249 int32 route_id, 249 int32 route_id,
250 int gpu_host_id) { 250 int gpu_host_id) {
251 window_->layer()->SetExternalTexture( 251 window_->layer()->SetExternalTexture(
252 accelerated_surface_containers_[surface_id]->GetTexture()); 252 accelerated_surface_containers_[surface_id]->GetTexture());
253 glFlush(); 253 glFlush();
254 254
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 466 }
467 #endif 467 #endif
468 468
469 //////////////////////////////////////////////////////////////////////////////// 469 ////////////////////////////////////////////////////////////////////////////////
470 // RenderWidgetHostViewAura, private: 470 // RenderWidgetHostViewAura, private:
471 471
472 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() { 472 void RenderWidgetHostViewAura::UpdateCursorIfOverSelf() {
473 //NOTIMPLEMENTED(); 473 //NOTIMPLEMENTED();
474 // TODO(beng): See RenderWidgetHostViewWin. 474 // TODO(beng): See RenderWidgetHostViewWin.
475 } 475 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698