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

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

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual void AcceleratedSurfacePostSubBuffer( 87 virtual void AcceleratedSurfacePostSubBuffer(
88 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 88 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
89 int gpu_host_id) OVERRIDE; 89 int gpu_host_id) OVERRIDE;
90 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 90 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
91 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 91 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
92 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 92 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
93 virtual void CopyFromCompositingSurface( 93 virtual void CopyFromCompositingSurface(
94 const gfx::Rect& src_subrect, 94 const gfx::Rect& src_subrect,
95 const gfx::Size& dst_size, 95 const gfx::Size& dst_size,
96 const base::Callback<void(bool)>& callback, 96 const base::Callback<void(bool)>& callback,
97 skia::PlatformCanvas* output) OVERRIDE; 97 skia::PlatformBitmap* output) OVERRIDE;
98 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 98 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
99 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; 99 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
100 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; 100 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE;
101 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; 101 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE;
102 virtual void UnhandledWheelEvent( 102 virtual void UnhandledWheelEvent(
103 const WebKit::WebMouseWheelEvent& event) OVERRIDE; 103 const WebKit::WebMouseWheelEvent& event) OVERRIDE;
104 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, 104 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type,
105 bool processed) OVERRIDE; 105 bool processed) OVERRIDE;
106 virtual void SetHasHorizontalScrollbar( 106 virtual void SetHasHorizontalScrollbar(
107 bool has_horizontal_scrollbar) OVERRIDE; 107 bool has_horizontal_scrollbar) OVERRIDE;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // The handle for the transport surface (between renderer and browser-side 157 // The handle for the transport surface (between renderer and browser-side
158 // compositor) for this view. 158 // compositor) for this view.
159 gfx::GLSurfaceHandle shared_surface_; 159 gfx::GLSurfaceHandle shared_surface_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 161 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
162 }; 162 };
163 163
164 } // namespace content 164 } // namespace content
165 165
166 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 166 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698