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

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

Issue 11959036: Implement vsync notification on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 current_mailbox_ = gpu::Mailbox(); 617 current_mailbox_ = gpu::Mailbox();
618 } 618 }
619 } 619 }
620 620
621 bool RenderWidgetHostViewAndroid::HasAcceleratedSurface( 621 bool RenderWidgetHostViewAndroid::HasAcceleratedSurface(
622 const gfx::Size& desired_size) { 622 const gfx::Size& desired_size) {
623 NOTREACHED(); 623 NOTREACHED();
624 return false; 624 return false;
625 } 625 }
626 626
627 void RenderWidgetHostViewAndroid::SetVSyncNotificationEnabled(bool enable) {
628 if (content_view_core_)
629 content_view_core_->SetVSyncNotificationEnabled(enable);
630 }
631
627 void RenderWidgetHostViewAndroid::GetScreenInfo(WebKit::WebScreenInfo* result) { 632 void RenderWidgetHostViewAndroid::GetScreenInfo(WebKit::WebScreenInfo* result) {
628 // ScreenInfo isn't tied to the widget on Android. Always return the default. 633 // ScreenInfo isn't tied to the widget on Android. Always return the default.
629 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); 634 RenderWidgetHostViewBase::GetDefaultScreenInfo(result);
630 } 635 }
631 636
632 // TODO(jrg): Find out the implications and answer correctly here, 637 // TODO(jrg): Find out the implications and answer correctly here,
633 // as we are returning the WebView and not root window bounds. 638 // as we are returning the WebView and not root window bounds.
634 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { 639 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() {
635 return GetViewBounds(); 640 return GetViewBounds();
636 } 641 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 // RenderWidgetHostView, public: 792 // RenderWidgetHostView, public:
788 793
789 // static 794 // static
790 RenderWidgetHostView* 795 RenderWidgetHostView*
791 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 796 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
792 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 797 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
793 return new RenderWidgetHostViewAndroid(rwhi, NULL); 798 return new RenderWidgetHostViewAndroid(rwhi, NULL);
794 } 799 }
795 800
796 } // namespace content 801 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698