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

Unified Diff: include/gpu/GrRect.h

Issue 19449002: Replace all instances of GrRect with SkRect. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 5 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 | « include/gpu/GrOvalRenderer.h ('k') | include/gpu/GrRenderTarget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrRect.h
diff --git a/include/gpu/GrRect.h b/include/gpu/GrRect.h
index 821e137030847397e8d3fd646763e3b3a983da39..cacc5117b5324af74297543a458a7b93409cc4a0 100644
--- a/include/gpu/GrRect.h
+++ b/include/gpu/GrRect.h
@@ -1,4 +1,3 @@
-
/*
* Copyright 2010 Google Inc.
*
@@ -6,17 +5,12 @@
* found in the LICENSE file.
*/
-
-
#ifndef GrRect_DEFINED
#define GrRect_DEFINED
-#include "GrPoint.h"
+#include "SkTypes.h"
#include "SkRect.h"
-typedef SkIRect GrIRect;
-typedef SkRect GrRect;
-
struct GrIRect16 {
int16_t fLeft, fTop, fRight, fBottom;
@@ -25,7 +19,7 @@ struct GrIRect16 {
int area() const { return this->width() * this->height(); }
bool isEmpty() const { return fLeft >= fRight || fTop >= fBottom; }
- void set(const GrIRect& r) {
+ void set(const SkIRect& r) {
fLeft = SkToS16(r.fLeft);
fTop = SkToS16(r.fTop);
fRight = SkToS16(r.fRight);
« no previous file with comments | « include/gpu/GrOvalRenderer.h ('k') | include/gpu/GrRenderTarget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698