| OLD | NEW |
| 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_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 void PaintToBackingStore( | 37 void PaintToBackingStore( |
| 38 const gfx::Rect& bitmap_rect, | 38 const gfx::Rect& bitmap_rect, |
| 39 const std::vector<gfx::Rect>& copy_rects, | 39 const std::vector<gfx::Rect>& copy_rects, |
| 40 TransportDIB* dib); | 40 TransportDIB* dib); |
| 41 | 41 |
| 42 void ScrollBackingStore(int dx, | 42 void ScrollBackingStore(int dx, |
| 43 int dy, | 43 int dy, |
| 44 const gfx::Rect& clip_rect, | 44 const gfx::Rect& clip_rect, |
| 45 const gfx::Size& view_size); | 45 const gfx::Size& view_size); |
| 46 | 46 |
| 47 void Clear(SkColor clear_color); |
| 48 |
| 47 const gfx::Size& GetSize() const { return size_; } | 49 const gfx::Size& GetSize() const { return size_; } |
| 48 | 50 |
| 49 const SkBitmap& GetBitmap() const { return bitmap_; } | 51 const SkBitmap& GetBitmap() const { return bitmap_; } |
| 50 | 52 |
| 51 float GetScaleFactor() const { return scale_factor_; } | 53 float GetScaleFactor() const { return scale_factor_; } |
| 52 | 54 |
| 53 private: | 55 private: |
| 54 gfx::Size size_; | 56 gfx::Size size_; |
| 55 SkBitmap bitmap_; | 57 SkBitmap bitmap_; |
| 56 scoped_ptr<SkCanvas> canvas_; | 58 scoped_ptr<SkCanvas> canvas_; |
| 57 float scale_factor_; | 59 float scale_factor_; |
| 58 | 60 |
| 59 DISALLOW_COPY_AND_ASSIGN(BrowserPluginBackingStore); | 61 DISALLOW_COPY_AND_ASSIGN(BrowserPluginBackingStore); |
| 60 }; | 62 }; |
| 61 | 63 |
| 62 } // namespace content | 64 } // namespace content |
| 63 | 65 |
| 64 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__ | 66 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__ |
| OLD | NEW |