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

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

Issue 11031055: Introduce PlatformBitmap, which is a minimal helper class that wraps an SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) { 260 void RenderWidgetHostViewAndroid::SetBackground(const SkBitmap& background) {
261 RenderWidgetHostViewBase::SetBackground(background); 261 RenderWidgetHostViewBase::SetBackground(background);
262 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background)); 262 host_->Send(new ViewMsg_SetBackground(host_->GetRoutingID(), background));
263 } 263 }
264 264
265 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( 265 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface(
266 const gfx::Rect& src_subrect, 266 const gfx::Rect& src_subrect,
267 const gfx::Size& dst_size, 267 const gfx::Size& dst_size,
268 const base::Callback<void(bool)>& callback, 268 const base::Callback<void(bool)>& callback,
269 skia::PlatformCanvas* output) { 269 skia::PlatformBitmap* output) {
270 NOTIMPLEMENTED(); 270 NOTIMPLEMENTED();
271 callback.Run(false); 271 callback.Run(false);
272 } 272 }
273 273
274 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() { 274 void RenderWidgetHostViewAndroid::OnAcceleratedCompositingStateChange() {
275 } 275 }
276 276
277 void RenderWidgetHostViewAndroid::AcceleratedSurfaceBuffersSwapped( 277 void RenderWidgetHostViewAndroid::AcceleratedSurfaceBuffersSwapped(
278 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 278 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
279 int gpu_host_id) { 279 int gpu_host_id) {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 // RenderWidgetHostView, public: 472 // RenderWidgetHostView, public:
473 473
474 // static 474 // static
475 RenderWidgetHostView* 475 RenderWidgetHostView*
476 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 476 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
477 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 477 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
478 return new RenderWidgetHostViewAndroid(rwhi, NULL); 478 return new RenderWidgetHostViewAndroid(rwhi, NULL);
479 } 479 }
480 480
481 } // namespace content 481 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698