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

Side by Side Diff: content/browser/renderer_host/test_backing_store.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/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 TestBackingStore::TestBackingStore(RenderWidgetHost* widget, 9 TestBackingStore::TestBackingStore(RenderWidgetHost* widget,
10 const gfx::Size& size) 10 const gfx::Size& size)
11 : BackingStore(widget, size) { 11 : BackingStore(widget, size) {
12 } 12 }
13 13
14 TestBackingStore::~TestBackingStore() { 14 TestBackingStore::~TestBackingStore() {
15 } 15 }
16 16
17 void TestBackingStore::PaintToBackingStore( 17 void TestBackingStore::PaintToBackingStore(
18 RenderProcessHost* process, 18 RenderProcessHost* process,
19 TransportDIB::Id bitmap, 19 TransportDIB::Id bitmap,
20 const gfx::Rect& bitmap_rect, 20 const gfx::Rect& bitmap_rect,
21 const std::vector<gfx::Rect>& copy_rects, 21 const std::vector<gfx::Rect>& copy_rects,
22 float scale_factor, 22 float scale_factor,
23 const base::Closure& completion_callback, 23 const base::Closure& completion_callback,
24 bool* scheduled_completion_callback) { 24 bool* scheduled_completion_callback) {
25 *scheduled_completion_callback = false; 25 *scheduled_completion_callback = false;
26 } 26 }
27 27
28 bool TestBackingStore::CopyFromBackingStore(const gfx::Rect& rect, 28 bool TestBackingStore::CopyFromBackingStore(const gfx::Rect& rect,
29 skia::PlatformCanvas* output) { 29 skia::PlatformBitmap* output) {
30 return false; 30 return false;
31 } 31 }
32 32
33 void TestBackingStore::ScrollBackingStore(int dx, int dy, 33 void TestBackingStore::ScrollBackingStore(int dx, int dy,
34 const gfx::Rect& clip_rect, 34 const gfx::Rect& clip_rect,
35 const gfx::Size& view_size) { 35 const gfx::Size& view_size) {
36 } 36 }
37 37
38 } // namespace content 38 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_backing_store.h ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698