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

Side by Side Diff: Source/platform/graphics/GraphicsContext.cpp

Issue 210043004: Draw thin slices of an image w/ anti-aliasing for 2D <canvas> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clarifications. Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 , m_annotationCount(0) 123 , m_annotationCount(0)
124 , m_layerCount(0) 124 , m_layerCount(0)
125 #endif 125 #endif
126 , m_trackOpaqueRegion(false) 126 , m_trackOpaqueRegion(false)
127 , m_trackTextRegion(false) 127 , m_trackTextRegion(false)
128 , m_useHighResMarker(false) 128 , m_useHighResMarker(false)
129 , m_updatingControlTints(false) 129 , m_updatingControlTints(false)
130 , m_accelerated(false) 130 , m_accelerated(false)
131 , m_isCertainlyOpaque(true) 131 , m_isCertainlyOpaque(true)
132 , m_printing(false) 132 , m_printing(false)
133 , m_antialiasHairlineImages(false)
133 { 134 {
134 // FIXME: Do some tests to determine how many states are typically used, and allocate 135 // FIXME: Do some tests to determine how many states are typically used, and allocate
135 // several here. 136 // several here.
136 m_paintStateStack.append(GraphicsContextState::create()); 137 m_paintStateStack.append(GraphicsContextState::create());
137 m_paintState = m_paintStateStack.last().get(); 138 m_paintState = m_paintStateStack.last().get();
138 } 139 }
139 140
140 GraphicsContext::~GraphicsContext() 141 GraphicsContext::~GraphicsContext()
141 { 142 {
142 ASSERT(!m_paintStateIndex); 143 ASSERT(!m_paintStateIndex);
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 1908
1908 void GraphicsContext::didDrawTextInRect(const SkRect& textRect) 1909 void GraphicsContext::didDrawTextInRect(const SkRect& textRect)
1909 { 1910 {
1910 if (m_trackTextRegion) { 1911 if (m_trackTextRegion) {
1911 TRACE_EVENT0("skia", "PlatformContextSkia::trackTextRegion"); 1912 TRACE_EVENT0("skia", "PlatformContextSkia::trackTextRegion");
1912 m_textRegion.join(textRect); 1913 m_textRegion.join(textRect);
1913 } 1914 }
1914 } 1915 }
1915 1916
1916 } 1917 }
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsContext.h ('k') | Source/platform/graphics/skia/NativeImageSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698