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

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

Issue 10815070: Support copying a partial rectangle region from the compositing surface on Aura and GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 4 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 "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual void DidUpdateBackingStore( 91 virtual void DidUpdateBackingStore(
92 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, 92 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy,
93 const std::vector<gfx::Rect>& rects) OVERRIDE {} 93 const std::vector<gfx::Rect>& rects) OVERRIDE {}
94 virtual void RenderViewGone(base::TerminationStatus status, 94 virtual void RenderViewGone(base::TerminationStatus status,
95 int error_code) OVERRIDE; 95 int error_code) OVERRIDE;
96 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { } 96 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) { }
97 virtual void Destroy() OVERRIDE {} 97 virtual void Destroy() OVERRIDE {}
98 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {} 98 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE {}
99 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; 99 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE;
100 virtual void CopyFromCompositingSurface( 100 virtual void CopyFromCompositingSurface(
101 const gfx::Size& size, 101 const gfx::Rect& src_subrect,
102 const gfx::Size& dst_size,
102 const base::Callback<void(bool)>& callback, 103 const base::Callback<void(bool)>& callback,
103 skia::PlatformCanvas* output) OVERRIDE; 104 skia::PlatformCanvas* output) OVERRIDE;
104 virtual void OnAcceleratedCompositingStateChange() OVERRIDE; 105 virtual void OnAcceleratedCompositingStateChange() OVERRIDE;
105 virtual void AcceleratedSurfaceBuffersSwapped( 106 virtual void AcceleratedSurfaceBuffersSwapped(
106 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 107 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
107 int gpu_host_id) OVERRIDE; 108 int gpu_host_id) OVERRIDE;
108 virtual void AcceleratedSurfacePostSubBuffer( 109 virtual void AcceleratedSurfacePostSubBuffer(
109 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, 110 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
110 int gpu_host_id) OVERRIDE; 111 int gpu_host_id) OVERRIDE;
111 virtual void AcceleratedSurfaceSuspend() OVERRIDE; 112 virtual void AcceleratedSurfaceSuspend() OVERRIDE;
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 TestRenderViewHost* active_test_rvh(); 317 TestRenderViewHost* active_test_rvh();
317 TestWebContents* contents(); 318 TestWebContents* contents();
318 319
319 private: 320 private:
320 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
321 }; 322 };
322 323
323 } // namespace content 324 } // namespace content
324 325
325 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.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