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

Side by Side Diff: ui/gfx/canvas.h

Issue 9332006: ui/gfx: Make the first version of Canvas::TileImageInt take a gfx::Rect. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_CANVAS_H_ 5 #ifndef UI_GFX_CANVAS_H_
6 #define UI_GFX_CANVAS_H_ 6 #define UI_GFX_CANVAS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 virtual void DrawStringInt(const string16& text, 190 virtual void DrawStringInt(const string16& text,
191 const gfx::Font& font, 191 const gfx::Font& font,
192 const SkColor& color, 192 const SkColor& color,
193 int x, int y, int w, int h, 193 int x, int y, int w, int h,
194 int flags) = 0; 194 int flags) = 0;
195 195
196 // Draws a dotted gray rectangle used for focus purposes. 196 // Draws a dotted gray rectangle used for focus purposes.
197 virtual void DrawFocusRect(const gfx::Rect& rect) = 0; 197 virtual void DrawFocusRect(const gfx::Rect& rect) = 0;
198 198
199 // Tiles the image in the specified region. 199 // Tiles the image in the specified region.
200 virtual void TileImageInt(const SkBitmap& bitmap, 200 virtual void TileImage(const SkBitmap& bitmap, const gfx::Rect& rect) = 0;
201 int x, int y, int w, int h) = 0;
202 virtual void TileImageInt(const SkBitmap& bitmap, 201 virtual void TileImageInt(const SkBitmap& bitmap,
203 int src_x, int src_y, 202 int src_x, int src_y,
204 int dest_x, int dest_y, int w, int h) = 0; 203 int dest_x, int dest_y, int w, int h) = 0;
205 204
206 // Returns a native drawing context for platform specific drawing routines to 205 // Returns a native drawing context for platform specific drawing routines to
207 // use. Must be balanced by a call to EndPlatformPaint(). 206 // use. Must be balanced by a call to EndPlatformPaint().
208 virtual gfx::NativeDrawingContext BeginPlatformPaint() = 0; 207 virtual gfx::NativeDrawingContext BeginPlatformPaint() = 0;
209 208
210 // Signifies the end of platform drawing using the native drawing context 209 // Signifies the end of platform drawing using the native drawing context
211 // returned by BeginPlatformPaint(). 210 // returned by BeginPlatformPaint().
(...skipping 25 matching lines...) Expand all
237 // Returns the rectangle that is invalid. 236 // Returns the rectangle that is invalid.
238 virtual gfx::Rect GetInvalidRect() const = 0; 237 virtual gfx::Rect GetInvalidRect() const = 0;
239 238
240 // Returns the underlying Canvas. 239 // Returns the underlying Canvas.
241 virtual Canvas* AsCanvas() = 0; 240 virtual Canvas* AsCanvas() = 0;
242 }; 241 };
243 242
244 } // namespace gfx 243 } // namespace gfx
245 244
246 #endif // UI_GFX_CANVAS_H_ 245 #endif // UI_GFX_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698