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

Unified Diff: ui/gfx/canvas_direct2d.cc

Issue 6825055: Include base/win/scoped_comptr.h instead of base/scoped_comptr_win.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert bad indentation, rebase Created 9 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
« no previous file with comments | « ui/gfx/canvas_direct2d.h ('k') | ui/gfx/canvas_direct2d_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas_direct2d.cc
diff --git a/ui/gfx/canvas_direct2d.cc b/ui/gfx/canvas_direct2d.cc
index 6c4d3bbd95f61c1950e099d9854134e686532f2b..e58f94cc060d2a781978490b2f42aed9d8fd0d1f 100644
--- a/ui/gfx/canvas_direct2d.cc
+++ b/ui/gfx/canvas_direct2d.cc
@@ -63,7 +63,7 @@ ID2D1Brush* CreateD2D1BrushFromSkBitmap(ID2D1RenderTarget* render_target,
const SkBitmap& bitmap,
D2D1_EXTEND_MODE extend_mode_x,
D2D1_EXTEND_MODE extend_mode_y) {
- ScopedComPtr<ID2D1Bitmap> d2d1_bitmap(
+ base::win::ScopedComPtr<ID2D1Bitmap> d2d1_bitmap(
CreateD2D1BitmapFromSkBitmap(render_target, bitmap));
ID2D1BitmapBrush* brush = NULL;
@@ -85,7 +85,7 @@ class Direct2DBrush : public gfx::Brush {
ID2D1Brush* brush() const { return brush_.get(); }
private:
- ScopedComPtr<ID2D1Brush> brush_;
+ base::win::ScopedComPtr<ID2D1Brush> brush_;
DISALLOW_COPY_AND_ASSIGN(Direct2DBrush);
};
@@ -204,7 +204,7 @@ void CanvasDirect2D::ScaleInt(int x, int y) {
void CanvasDirect2D::FillRectInt(const SkColor& color,
int x, int y, int w, int h) {
- ScopedComPtr<ID2D1SolidColorBrush> solid_brush;
+ base::win::ScopedComPtr<ID2D1SolidColorBrush> solid_brush;
rt_->CreateSolidColorBrush(SkColorToColorF(color), solid_brush.Receive());
rt_->FillRectangle(RectToRectF(x, y, w, h), solid_brush);
}
@@ -223,7 +223,7 @@ void CanvasDirect2D::FillRectInt(const gfx::Brush* brush,
void CanvasDirect2D::DrawRectInt(const SkColor& color,
int x, int y, int w, int h) {
- ScopedComPtr<ID2D1SolidColorBrush> solid_brush;
+ base::win::ScopedComPtr<ID2D1SolidColorBrush> solid_brush;
rt_->CreateSolidColorBrush(SkColorToColorF(color), solid_brush.Receive());
rt_->DrawRectangle(RectToRectF(x, y, w, h), solid_brush);
}
@@ -242,13 +242,13 @@ void CanvasDirect2D::DrawRectInt(int x, int y, int w, int h,
void CanvasDirect2D::DrawLineInt(const SkColor& color,
int x1, int y1,
int x2, int y2) {
- ScopedComPtr<ID2D1SolidColorBrush> solid_brush;
+ base::win::ScopedComPtr<ID2D1SolidColorBrush> solid_brush;
rt_->CreateSolidColorBrush(SkColorToColorF(color), solid_brush.Receive());
rt_->DrawLine(PointToPoint2F(x1, y1), PointToPoint2F(x2, y2), solid_brush);
}
void CanvasDirect2D::DrawBitmapInt(const SkBitmap& bitmap, int x, int y) {
- ScopedComPtr<ID2D1Bitmap> d2d1_bitmap(
+ base::win::ScopedComPtr<ID2D1Bitmap> d2d1_bitmap(
CreateD2D1BitmapFromSkBitmap(rt_, bitmap));
rt_->DrawBitmap(d2d1_bitmap,
RectToRectF(x, y, bitmap.width(), bitmap.height()),
@@ -268,7 +268,7 @@ void CanvasDirect2D::DrawBitmapInt(const SkBitmap& bitmap,
int dest_x, int dest_y,
int dest_w, int dest_h,
bool filter) {
- ScopedComPtr<ID2D1Bitmap> d2d1_bitmap(
+ base::win::ScopedComPtr<ID2D1Bitmap> d2d1_bitmap(
CreateD2D1BitmapFromSkBitmap(rt_, bitmap));
rt_->DrawBitmap(d2d1_bitmap,
RectToRectF(dest_x, dest_y, dest_w, dest_h),
@@ -314,7 +314,7 @@ void CanvasDirect2D::DrawFocusRect(int x, int y, int width, int height) {
void CanvasDirect2D::TileImageInt(const SkBitmap& bitmap,
int x, int y, int w, int h) {
- ScopedComPtr<ID2D1Brush> brush(
+ base::win::ScopedComPtr<ID2D1Brush> brush(
CreateD2D1BrushFromSkBitmap(rt_, bitmap, D2D1_EXTEND_MODE_WRAP,
D2D1_EXTEND_MODE_WRAP));
rt_->FillRectangle(RectToRectF(x, y, w, h), brush);
« no previous file with comments | « ui/gfx/canvas_direct2d.h ('k') | ui/gfx/canvas_direct2d_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698