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

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

Issue 11519045: Remove unused gpu message fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 435 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
436 int gpu_host_id) { 436 int gpu_host_id) {
437 NOTREACHED(); 437 NOTREACHED();
438 } 438 }
439 439
440 void RenderWidgetHostViewAndroid::AcceleratedSurfaceSuspend() { 440 void RenderWidgetHostViewAndroid::AcceleratedSurfaceSuspend() {
441 NOTREACHED(); 441 NOTREACHED();
442 } 442 }
443 443
444 void RenderWidgetHostViewAndroid::AcceleratedSurfaceNew( 444 void RenderWidgetHostViewAndroid::AcceleratedSurfaceNew(
445 int32 width_in_pixel, int32 height_in_pixel, uint64 surface_id, 445 uint64 surface_id,
446 const std::string& mailbox_name) { 446 const std::string& mailbox_name) {
447 DCHECK(surface_id == 1 || surface_id == 2); 447 DCHECK(surface_id == 1 || surface_id == 2);
448 id_to_mailbox_[surface_id] = mailbox_name; 448 id_to_mailbox_[surface_id] = mailbox_name;
449 } 449 }
450 450
451 void RenderWidgetHostViewAndroid::AcceleratedSurfaceRelease() { 451 void RenderWidgetHostViewAndroid::AcceleratedSurfaceRelease() {
452 // This tells us we should free the frontbuffer. 452 // This tells us we should free the frontbuffer.
453 if (texture_id_in_layer_) { 453 if (texture_id_in_layer_) {
454 texture_layer_->setTextureId(0); 454 texture_layer_->setTextureId(0);
455 ImageTransportFactoryAndroid::GetInstance()->DeleteTexture( 455 ImageTransportFactoryAndroid::GetInstance()->DeleteTexture(
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 // RenderWidgetHostView, public: 640 // RenderWidgetHostView, public:
641 641
642 // static 642 // static
643 RenderWidgetHostView* 643 RenderWidgetHostView*
644 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 644 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
645 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 645 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
646 return new RenderWidgetHostViewAndroid(rwhi, NULL); 646 return new RenderWidgetHostViewAndroid(rwhi, NULL);
647 } 647 }
648 648
649 } // namespace content 649 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698