summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/graphics_2d.cc
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-30 22:13:32 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-30 22:13:32 +0000
commitb99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8 (patch)
tree2f9074d5ad8acf95156fc9c390646eca935d232e /ppapi/cpp/graphics_2d.cc
parent004f2cf5d5eb19764260b1f513738be15ae77d47 (diff)
downloadchromium_src-b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8.zip
chromium_src-b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8.tar.gz
chromium_src-b99603ceb9cbec4a3b1ca9ac535f6b1cbc951bb8.tar.bz2
Move some functions out of win_util and into hwnd_util, and into a new win/shell file.
This also moves two functions that were only called once from win_util and inwo window_win and download_util, respectively. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6035011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/graphics_2d.cc')
-rw-r--r--ppapi/cpp/graphics_2d.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/ppapi/cpp/graphics_2d.cc b/ppapi/cpp/graphics_2d.cc
index 40a6312..edd5c33 100644
--- a/ppapi/cpp/graphics_2d.cc
+++ b/ppapi/cpp/graphics_2d.cc
@@ -50,16 +50,11 @@ Graphics2D::~Graphics2D() {
}
Graphics2D& Graphics2D::operator=(const Graphics2D& other) {
- Graphics2D copy(other);
- swap(copy);
+ Resource::operator=(other);
+ size_ = other.size_;
return *this;
}
-void Graphics2D::swap(Graphics2D& other) {
- Resource::swap(other);
- size_.swap(other.size_);
-}
-
void Graphics2D::PaintImageData(const ImageData& image,
const Point& top_left) {
if (!has_interface<PPB_Graphics2D>())