From 486767c7c0535e13d8084e6a713ec175224206e6 Mon Sep 17 00:00:00 2001 From: "sievers@chromium.org" Date: Wed, 1 Aug 2012 19:53:50 +0000 Subject: Fix clang error with inlined function on Android. BUG=136923 Review URL: https://chromiumcodereview.appspot.com/10821134 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149474 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/android/draw_delegate_impl.cc | 4 ++++ content/browser/android/draw_delegate_impl.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'content/browser') diff --git a/content/browser/android/draw_delegate_impl.cc b/content/browser/android/draw_delegate_impl.cc index 43fc1a0..d20afd4 100644 --- a/content/browser/android/draw_delegate_impl.cc +++ b/content/browser/android/draw_delegate_impl.cc @@ -29,6 +29,10 @@ void DrawDelegateImpl::SetUpdateCallback( draw_callback_ = callback; } +void DrawDelegateImpl::SetBounds(const gfx::Size& size) { + size_ = size; +} + void DrawDelegateImpl::OnSurfaceUpdated( uint64 texture, RenderWidgetHostView* view, const SurfacePresentedCallback& present_callback) { diff --git a/content/browser/android/draw_delegate_impl.h b/content/browser/android/draw_delegate_impl.h index c66fb56..80c39c9 100644 --- a/content/browser/android/draw_delegate_impl.h +++ b/content/browser/android/draw_delegate_impl.h @@ -21,7 +21,7 @@ class DrawDelegateImpl : public DrawDelegate { // DrawDelegate implementation. virtual void SetUpdateCallback( const SurfaceUpdatedCallback& callback) OVERRIDE; - virtual void SetBounds(const gfx::Size& size) OVERRIDE { size_ = size; } + virtual void SetBounds(const gfx::Size& size) OVERRIDE; void SetDrawSurface(gfx::GLSurfaceHandle handle) { handle_ = handle; } void OnSurfaceUpdated(uint64 texture, RenderWidgetHostView* view, -- cgit v1.1