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

Side by Side Diff: skia/ext/bitmap_platform_device_linux.cc

Issue 6588012: roll skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « skia/ext/bitmap_platform_device_linux.h ('k') | skia/ext/bitmap_platform_device_mac.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "skia/ext/bitmap_platform_device_linux.h" 5 #include "skia/ext/bitmap_platform_device_linux.h"
6 6
7 #include "skia/ext/bitmap_platform_device_data.h" 7 #include "skia/ext/bitmap_platform_device_data.h"
8 8
9 #include <cairo/cairo.h> 9 #include <cairo/cairo.h>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 cairo_surface_t* surface = cairo_get_target(cairo); 157 cairo_surface_t* surface = cairo_get_target(cairo);
158 // Tell cairo to flush anything it has pending. 158 // Tell cairo to flush anything it has pending.
159 cairo_surface_flush(surface); 159 cairo_surface_flush(surface);
160 // Tell Cairo that we (probably) modified (actually, will modify) its pixel 160 // Tell Cairo that we (probably) modified (actually, will modify) its pixel
161 // buffer directly. 161 // buffer directly.
162 cairo_surface_mark_dirty(surface); 162 cairo_surface_mark_dirty(surface);
163 return cairo; 163 return cairo;
164 } 164 }
165 165
166 void BitmapPlatformDevice::setMatrixClip(const SkMatrix& transform, 166 void BitmapPlatformDevice::setMatrixClip(const SkMatrix& transform,
167 const SkRegion& region) { 167 const SkRegion& region,
168 const SkClipStack&) {
168 data_->SetMatrixClip(transform, region); 169 data_->SetMatrixClip(transform, region);
169 } 170 }
170 171
171 BitmapPlatformDevice& BitmapPlatformDevice::operator=( 172 BitmapPlatformDevice& BitmapPlatformDevice::operator=(
172 const BitmapPlatformDevice& other) { 173 const BitmapPlatformDevice& other) {
173 data_ = other.data_; 174 data_ = other.data_;
174 return *this; 175 return *this;
175 } 176 }
176 177
177 } // namespace skia 178 } // namespace skia
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_linux.h ('k') | skia/ext/bitmap_platform_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698