OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ui/gfx/canvas_skia.h" | 5 #include "ui/gfx/canvas_skia.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 } | 324 } |
325 | 325 |
326 gfx::NativeDrawingContext CanvasSkia::BeginPlatformPaint() { | 326 gfx::NativeDrawingContext CanvasSkia::BeginPlatformPaint() { |
327 return skia::BeginPlatformPaint(this); | 327 return skia::BeginPlatformPaint(this); |
328 } | 328 } |
329 | 329 |
330 void CanvasSkia::EndPlatformPaint() { | 330 void CanvasSkia::EndPlatformPaint() { |
331 skia::EndPlatformPaint(this); | 331 skia::EndPlatformPaint(this); |
332 } | 332 } |
333 | 333 |
| 334 #if !defined(OS_MACOSX) |
334 void CanvasSkia::Transform(const ui::Transform& transform) { | 335 void CanvasSkia::Transform(const ui::Transform& transform) { |
335 concat(transform.matrix()); | 336 concat(transform.matrix()); |
336 } | 337 } |
| 338 #endif |
337 | 339 |
338 CanvasSkia* CanvasSkia::AsCanvasSkia() { | 340 CanvasSkia* CanvasSkia::AsCanvasSkia() { |
339 return this; | 341 return this; |
340 } | 342 } |
341 | 343 |
342 const CanvasSkia* CanvasSkia::AsCanvasSkia() const { | 344 const CanvasSkia* CanvasSkia::AsCanvasSkia() const { |
343 return this; | 345 return this; |
344 } | 346 } |
345 | 347 |
346 //////////////////////////////////////////////////////////////////////////////// | 348 //////////////////////////////////////////////////////////////////////////////// |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 | 389 |
388 CanvasPaint* CanvasPaint::CreateCanvasPaint(gfx::NativeView view) { | 390 CanvasPaint* CanvasPaint::CreateCanvasPaint(gfx::NativeView view) { |
389 #if defined(OS_WIN) | 391 #if defined(OS_WIN) |
390 return new CanvasPaintWin(view); | 392 return new CanvasPaintWin(view); |
391 #else | 393 #else |
392 return NULL; | 394 return NULL; |
393 #endif | 395 #endif |
394 } | 396 } |
395 | 397 |
396 } // namespace gfx | 398 } // namespace gfx |
OLD | NEW |