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

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

Issue 2150633002: cc: Pass SurfaceId by const ref in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
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_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "content/browser/accessibility/browser_accessibility_manager.h" 9 #include "content/browser/accessibility/browser_accessibility_manager.h"
10 #include "content/browser/gpu/gpu_data_manager_impl.h" 10 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 } 395 }
396 396
397 gfx::PointF RenderWidgetHostViewBase::TransformPointToRootCoordSpaceF( 397 gfx::PointF RenderWidgetHostViewBase::TransformPointToRootCoordSpaceF(
398 const gfx::PointF& point) { 398 const gfx::PointF& point) {
399 return gfx::PointF(TransformPointToRootCoordSpace( 399 return gfx::PointF(TransformPointToRootCoordSpace(
400 gfx::ToRoundedPoint(point))); 400 gfx::ToRoundedPoint(point)));
401 } 401 }
402 402
403 void RenderWidgetHostViewBase::TransformPointToLocalCoordSpace( 403 void RenderWidgetHostViewBase::TransformPointToLocalCoordSpace(
404 const gfx::Point& point, 404 const gfx::Point& point,
405 cc::SurfaceId original_surface, 405 const cc::SurfaceId& original_surface,
406 gfx::Point* transformed_point) { 406 gfx::Point* transformed_point) {
407 *transformed_point = point; 407 *transformed_point = point;
408 } 408 }
409 409
410 void RenderWidgetHostViewBase::TextInputStateChanged( 410 void RenderWidgetHostViewBase::TextInputStateChanged(
411 const TextInputState& text_input_state) { 411 const TextInputState& text_input_state) {
412 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. 412 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
413 #if defined(USE_AURA) 413 #if defined(USE_AURA)
414 if (GetTextInputManager()) 414 if (GetTextInputManager())
415 GetTextInputManager()->UpdateTextInputState(this, text_input_state); 415 GetTextInputManager()->UpdateTextInputState(this, text_input_state);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 467 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
468 return false; 468 return false;
469 } 469 }
470 470
471 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 471 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
472 return cc::SurfaceId(); 472 return cc::SurfaceId();
473 } 473 }
474 474
475 } // namespace content 475 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698