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

Unified Diff: skia/ext/vector_canvas_unittest.cc

Issue 259047: Move classes depending on Skia out of base/gfx and into app/gfx. Rename... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « printing/image.cc ('k') | skia/ext/vector_platform_device_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/vector_canvas_unittest.cc
===================================================================
--- skia/ext/vector_canvas_unittest.cc (revision 28001)
+++ skia/ext/vector_canvas_unittest.cc (working copy)
@@ -15,7 +15,6 @@
#include "app/gfx/codec/png_codec.h"
#include "base/command_line.h"
#include "base/file_util.h"
-#include "base/gfx/gdi_util.h"
#include "base/path_service.h"
#include "base/string_util.h"
#include "skia/ext/vector_canvas.h"
@@ -43,7 +42,7 @@
private:
HDC context_;
- DISALLOW_EVIL_CONSTRUCTORS(Context);
+ DISALLOW_COPY_AND_ASSIGN(Context);
};
// Lightweight HBITMAP management.
@@ -51,7 +50,17 @@
public:
Bitmap(const Context& context, int x, int y) {
BITMAPINFOHEADER hdr;
- gfx::CreateBitmapHeader(x, y, &hdr);
+ hdr.biSize = sizeof(BITMAPINFOHEADER);
+ hdr.biWidth = x;
+ hdr.biHeight = -y; // Minus means top-down bitmap.
+ hdr.biPlanes = 1;
+ hdr.biBitCount = 32;
+ hdr.biCompression = BI_RGB; // No compression.
+ hdr.biSizeImage = 0;
+ hdr.biXPelsPerMeter = 1;
+ hdr.biYPelsPerMeter = 1;
+ hdr.biClrUsed = 0;
+ hdr.biClrImportant = 0;
bitmap_ = CreateDIBSection(context.context(),
reinterpret_cast<BITMAPINFO*>(&hdr), 0,
&data_, NULL, 0);
@@ -67,7 +76,7 @@
void* data_;
- DISALLOW_EVIL_CONSTRUCTORS(Bitmap);
+ DISALLOW_COPY_AND_ASSIGN(Bitmap);
};
// Lightweight raw-bitmap management. The image, once initialized, is immuable.
@@ -198,7 +207,7 @@
// Flag to signal if the comparison functions should ignore the alpha channel.
const bool ignore_alpha_;
- DISALLOW_EVIL_CONSTRUCTORS(Image);
+ DISALLOW_COPY_AND_ASSIGN(Image);
};
// Base for tests. Capability to process an image.
@@ -294,7 +303,7 @@
// Path to directory used to contain the test data.
std::wstring test_dir_;
- DISALLOW_EVIL_CONSTRUCTORS(ImageTest);
+ DISALLOW_COPY_AND_ASSIGN(ImageTest);
};
// Premultiply the Alpha channel on the R, B and G channels.
« no previous file with comments | « printing/image.cc ('k') | skia/ext/vector_platform_device_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698