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

Unified Diff: content/renderer/browser_plugin/browser_plugin_backing_store.h

Issue 251593004: Remove SW rendering path code from BrowserPlugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after test file change commit Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/browser_plugin/browser_plugin_backing_store.h
diff --git a/content/renderer/browser_plugin/browser_plugin_backing_store.h b/content/renderer/browser_plugin/browser_plugin_backing_store.h
deleted file mode 100644
index 5b030321fc7dbc97206656de38872ba32e00e57a..0000000000000000000000000000000000000000
--- a/content/renderer/browser_plugin/browser_plugin_backing_store.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__
-#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__
-
-#include <vector>
-
-#include "base/memory/scoped_ptr.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-#include "ui/gfx/size.h"
-#include "ui/gfx/vector2d.h"
-
-class SkCanvas;
-class TransportDIB;
-
-namespace gfx {
-class Canvas;
-class Point;
-class Rect;
-}
-
-namespace content {
-
-// The BrowserPluginBackingStore is a wrapper around an SkBitmap that is used
-// in the software rendering path of the browser plugin. The backing store has
-// two write operations:
-// 1. PaintToBackingStore copies pixel regions to the bitmap.
-// 2. ScrollBackingStore scrolls a region of the bitmap by dx, and dy.
-// These are called in response to changes in the guest relayed via
-// BrowserPluginMsg_UpdateRect. See BrowserPlugin::UpdateRect.
-class BrowserPluginBackingStore {
- public:
- BrowserPluginBackingStore(const gfx::Size& size, float scale_factor);
- virtual ~BrowserPluginBackingStore();
-
- void PaintToBackingStore(
- const gfx::Rect& bitmap_rect,
- const std::vector<gfx::Rect>& copy_rects,
- void* bitmap);
-
- void ScrollBackingStore(const gfx::Vector2d& delta,
- const gfx::Rect& clip_rect,
- const gfx::Size& view_size);
-
- void Clear(SkColor clear_color);
-
- const gfx::Size& GetSize() const { return size_; }
-
- const SkBitmap& GetBitmap() const { return bitmap_; }
-
- float GetScaleFactor() const { return scale_factor_; }
-
- private:
- gfx::Size size_;
- SkBitmap bitmap_;
- scoped_ptr<SkCanvas> canvas_;
- float scale_factor_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowserPluginBackingStore);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_BACKING_STORE_H__
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin.cc ('k') | content/renderer/browser_plugin/browser_plugin_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698