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

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

Issue 22796028: Updating Chromium to Skia SkBaseDevice/SkBitmapDevice split (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODOs Created 7 years, 3 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
« no previous file with comments | « skia/ext/analysis_canvas.h ('k') | skia/ext/benchmarking_canvas.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/debug/trace_event.h" 5 #include "base/debug/trace_event.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "skia/ext/analysis_canvas.h" 7 #include "skia/ext/analysis_canvas.h"
8 #include "third_party/skia/include/core/SkDevice.h" 8 #include "third_party/skia/include/core/SkDevice.h"
9 #include "third_party/skia/include/core/SkDraw.h" 9 #include "third_party/skia/include/core/SkDraw.h"
10 #include "third_party/skia/include/core/SkRRect.h" 10 #include "third_party/skia/include/core/SkRRect.h"
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 const SkColor colors[], 276 const SkColor colors[],
277 SkXfermode* xmode, 277 SkXfermode* xmode,
278 const uint16_t indices[], 278 const uint16_t indices[],
279 int index_count, 279 int index_count,
280 const SkPaint& paint) { 280 const SkPaint& paint) {
281 is_solid_color_ = false; 281 is_solid_color_ = false;
282 is_transparent_ = false; 282 is_transparent_ = false;
283 } 283 }
284 284
285 void AnalysisDevice::drawDevice(const SkDraw& draw, 285 void AnalysisDevice::drawDevice(const SkDraw& draw,
286 SkDevice* device, 286 SkBaseDevice* device,
287 int x, 287 int x,
288 int y, 288 int y,
289 const SkPaint& paint) { 289 const SkPaint& paint) {
290 is_solid_color_ = false; 290 is_solid_color_ = false;
291 is_transparent_ = false; 291 is_transparent_ = false;
292 } 292 }
293 293
294 AnalysisCanvas::AnalysisCanvas(AnalysisDevice* device) 294 AnalysisCanvas::AnalysisCanvas(AnalysisDevice* device)
295 : INHERITED(device), 295 : INHERITED(device),
296 saved_stack_size_(0), 296 saved_stack_size_(0),
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 (static_cast<AnalysisDevice*>(getDevice()))->SetForceNotTransparent( 408 (static_cast<AnalysisDevice*>(getDevice()))->SetForceNotTransparent(
409 false); 409 false);
410 force_not_transparent_stack_level_ = kNoLayer; 410 force_not_transparent_stack_level_ = kNoLayer;
411 } 411 }
412 } 412 }
413 } 413 }
414 414
415 } // namespace skia 415 } // namespace skia
416 416
417 417
OLDNEW
« no previous file with comments | « skia/ext/analysis_canvas.h ('k') | skia/ext/benchmarking_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698