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

Side by Side Diff: chrome/browser/renderer_host/test/test_backing_store.h

Issue 3834003: On Windows, create a new TransportDIB::Handle struct which includes the file (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/renderer_host/backing_store.h" 10 #include "chrome/browser/renderer_host/backing_store.h"
11 11
12 class TestBackingStore : public BackingStore { 12 class TestBackingStore : public BackingStore {
13 public: 13 public:
14 TestBackingStore(RenderWidgetHost* widget, const gfx::Size& size); 14 TestBackingStore(RenderWidgetHost* widget, const gfx::Size& size);
15 virtual ~TestBackingStore(); 15 virtual ~TestBackingStore();
16 16
17 // BackingStore implementation. 17 // BackingStore implementation.
18 virtual void PaintToBackingStore(RenderProcessHost* process, 18 virtual void PaintToBackingStore(RenderProcessHost* process,
19 TransportDIB::Id bitmap, 19 TransportDIB::Id dib_id,
20 TransportDIB::Handle dib_handle,
20 const gfx::Rect& bitmap_rect, 21 const gfx::Rect& bitmap_rect,
21 const std::vector<gfx::Rect>& copy_rects, 22 const std::vector<gfx::Rect>& copy_rects,
22 bool* painted_synchronously); 23 bool* painted_synchronously);
23 virtual bool CopyFromBackingStore(const gfx::Rect& rect, 24 virtual bool CopyFromBackingStore(const gfx::Rect& rect,
24 skia::PlatformCanvas* output); 25 skia::PlatformCanvas* output);
25 virtual void ScrollBackingStore(int dx, int dy, 26 virtual void ScrollBackingStore(int dx, int dy,
26 const gfx::Rect& clip_rect, 27 const gfx::Rect& clip_rect,
27 const gfx::Size& view_size); 28 const gfx::Size& view_size);
28 private: 29 private:
29 DISALLOW_COPY_AND_ASSIGN(TestBackingStore); 30 DISALLOW_COPY_AND_ASSIGN(TestBackingStore);
30 }; 31 };
31 32
32 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_ 33 #endif // CHROME_BROWSER_RENDERER_HOST_TEST_TEST_BACKING_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698