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

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

Issue 9980016: Delete background tab IOSurfaces on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed some perf issues on mac Created 8 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
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/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/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/logging.h" 10 #include "base/logging.h"
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 params.route_id, gpu_host_id)); 603 params.route_id, gpu_host_id));
604 if (!compositor->HasObserver(this)) 604 if (!compositor->HasObserver(this))
605 compositor->AddObserver(this); 605 compositor->AddObserver(this);
606 } 606 }
607 } 607 }
608 } 608 }
609 609
610 void RenderWidgetHostViewAura::AcceleratedSurfaceSuspend() { 610 void RenderWidgetHostViewAura::AcceleratedSurfaceSuspend() {
611 } 611 }
612 612
613 bool RenderWidgetHostViewAura::HasAcceleratedSurface(
614 const gfx::Size& desired_size) {
615 return false;
piman 2012/04/18 21:07:44 Is that what we want? Why? Add a comment? (same fo
jbates 2012/04/18 23:01:58 Done.
616 }
617
613 void RenderWidgetHostViewAura::AcceleratedSurfaceNew( 618 void RenderWidgetHostViewAura::AcceleratedSurfaceNew(
614 int32 width, 619 int32 width,
615 int32 height, 620 int32 height,
616 uint64* surface_handle, 621 uint64* surface_handle,
617 TransportDIB::Handle* shm_handle) { 622 TransportDIB::Handle* shm_handle) {
618 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); 623 ImageTransportFactory* factory = ImageTransportFactory::GetInstance();
619 scoped_refptr<ImageTransportClient> surface(factory->CreateTransportClient( 624 scoped_refptr<ImageTransportClient> surface(factory->CreateTransportClient(
620 gfx::Size(width, height), surface_handle)); 625 gfx::Size(width, height), surface_handle));
621 if (!surface) { 626 if (!surface) {
622 LOG(ERROR) << "Failed to create ImageTransportClient"; 627 LOG(ERROR) << "Failed to create ImageTransportClient";
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 if (command_line.HasSwitch(switches::kDefaultDeviceScaleFactor)) { 1306 if (command_line.HasSwitch(switches::kDefaultDeviceScaleFactor)) {
1302 int default_device_scale_factor; 1307 int default_device_scale_factor;
1303 base::StringToInt(command_line.GetSwitchValueASCII( 1308 base::StringToInt(command_line.GetSwitchValueASCII(
1304 switches::kDefaultDeviceScaleFactor), 1309 switches::kDefaultDeviceScaleFactor),
1305 &default_device_scale_factor); 1310 &default_device_scale_factor);
1306 default_dpi = default_device_scale_factor * 160; 1311 default_dpi = default_device_scale_factor * 160;
1307 } 1312 }
1308 results->verticalDPI = default_dpi; 1313 results->verticalDPI = default_dpi;
1309 results->horizontalDPI = default_dpi; 1314 results->horizontalDPI = default_dpi;
1310 } 1315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698