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

Side by Side Diff: ui/gfx/canvas_skia.cc

Issue 7044062: Use SkMatrix44 for the underlying implementation of ui::Transform (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Gardening patch Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/canvas_skia.h ('k') | ui/gfx/compositor/compositor_gl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/gfx/canvas_skia.h ('k') | ui/gfx/compositor/compositor_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698