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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.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_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 virtual void RenderViewGone(base::TerminationStatus status, 103 virtual void RenderViewGone(base::TerminationStatus status,
104 int error_code) OVERRIDE; 104 int error_code) OVERRIDE;
105 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 105 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
106 virtual void Destroy() OVERRIDE {} 106 virtual void Destroy() OVERRIDE {}
107 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} 107 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {}
108 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 108 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
109 virtual void CopyFromCompositingSurface( 109 virtual void CopyFromCompositingSurface(
110 const gfx::Rect& src_subrect, 110 const gfx::Rect& src_subrect,
111 const gfx::Size& dst_size, 111 const gfx::Size& dst_size,
112 const base::Callback<void(bool)>& callback, 112 const base::Callback<void(bool)>& callback,
113 skia::PlatformCanvas* output) OVERRIDE; 113 skia::PlatformBitmap* output) OVERRIDE;
114 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 114 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
115 virtual void AcceleratedSurfaceBuffersSwapped( 115 virtual void AcceleratedSurfaceBuffersSwapped(
116 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 116 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
117 int gpu_host_id) OVERRIDE; 117 int gpu_host_id) OVERRIDE;
118 virtual void AcceleratedSurfacePostSubBuffer( 118 virtual void AcceleratedSurfacePostSubBuffer(
119 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 119 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
120 int gpu_host_id) OVERRIDE; 120 int gpu_host_id) OVERRIDE;
121 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 121 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
122 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; 122 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE;
123 #if defined(OS_MACOSX) 123 #if defined(OS_MACOSX)
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 TestRenderViewHost* active_test_rvh(); 347 TestRenderViewHost* active_test_rvh();
348 TestWebContents* contents(); 348 TestWebContents* contents();
349 349
350 private: 350 private:
351 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 351 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
352 }; 352 };
353 353
354 } // namespace content 354 } // namespace content
355 355
356 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 356 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_backing_store.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698