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

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

Issue 260903020: Remove WebWidget::ForceSoftwareRenderingAndIgnoreGPUResidentContent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: webwidget-software-android: Created 6 years, 7 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 | « no previous file | 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) 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_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after
4206 4206
4207 // TODO(trchen): Cleanup the device scale factor mess. 4207 // TODO(trchen): Cleanup the device scale factor mess.
4208 // device scale will be applied in WebKit 4208 // device scale will be applied in WebKit
4209 // --> zoom_rect doesn't include device scale, 4209 // --> zoom_rect doesn't include device scale,
4210 // but WebKit will still draw on zoom_rect * device_scale_factor_ 4210 // but WebKit will still draw on zoom_rect * device_scale_factor_
4211 canvas.scale(new_total_scale / device_scale_factor_, 4211 canvas.scale(new_total_scale / device_scale_factor_,
4212 new_total_scale / device_scale_factor_); 4212 new_total_scale / device_scale_factor_);
4213 canvas.translate(-zoom_rect.x() * device_scale_factor_, 4213 canvas.translate(-zoom_rect.x() * device_scale_factor_,
4214 -zoom_rect.y() * device_scale_factor_); 4214 -zoom_rect.y() * device_scale_factor_);
4215 4215
4216 webwidget_->paint( 4216 DCHECK(webwidget_->isAcceleratedCompositingActive());
4217 &canvas, 4217 // TODO(aelias): The disambiguation popup should be composited so we
4218 zoom_rect, 4218 // don't have to call this method.
4219 WebWidget::ForceSoftwareRenderingAndIgnoreGPUResidentContent); 4219 webwidget_->paintCompositedDeprecated(&canvas, zoom_rect);
4220 } 4220 }
4221 4221
4222 gfx::Rect physical_window_zoom_rect = gfx::ToEnclosingRect( 4222 gfx::Rect physical_window_zoom_rect = gfx::ToEnclosingRect(
4223 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect))); 4223 ClientRectToPhysicalWindowRect(gfx::RectF(zoom_rect)));
4224 Send(new ViewHostMsg_ShowDisambiguationPopup(routing_id_, 4224 Send(new ViewHostMsg_ShowDisambiguationPopup(routing_id_,
4225 physical_window_zoom_rect, 4225 physical_window_zoom_rect,
4226 canvas_size, 4226 canvas_size,
4227 shared_bitmap->id())); 4227 shared_bitmap->id()));
4228 cc::SharedBitmapId id = shared_bitmap->id(); 4228 cc::SharedBitmapId id = shared_bitmap->id();
4229 disambiguation_bitmaps_[id] = shared_bitmap.release(); 4229 disambiguation_bitmaps_[id] = shared_bitmap.release();
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
4330 std::vector<gfx::Size> sizes; 4330 std::vector<gfx::Size> sizes;
4331 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4331 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4332 if (!url.isEmpty()) 4332 if (!url.isEmpty())
4333 urls.push_back( 4333 urls.push_back(
4334 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4334 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4335 } 4335 }
4336 SendUpdateFaviconURL(urls); 4336 SendUpdateFaviconURL(urls);
4337 } 4337 }
4338 4338
4339 } // namespace content 4339 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698