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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/Image.cpp

Issue 2798823002: Rewrite references to "wtf/" to "platform/wtf/" in platform/graphics. (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 22 matching lines...) Expand all
33 #include "platform/geometry/FloatRect.h" 33 #include "platform/geometry/FloatRect.h"
34 #include "platform/geometry/FloatSize.h" 34 #include "platform/geometry/FloatSize.h"
35 #include "platform/graphics/BitmapImage.h" 35 #include "platform/graphics/BitmapImage.h"
36 #include "platform/graphics/DeferredImageDecoder.h" 36 #include "platform/graphics/DeferredImageDecoder.h"
37 #include "platform/graphics/GraphicsContext.h" 37 #include "platform/graphics/GraphicsContext.h"
38 #include "platform/graphics/paint/PaintRecorder.h" 38 #include "platform/graphics/paint/PaintRecorder.h"
39 #include "platform/graphics/paint/PaintShader.h" 39 #include "platform/graphics/paint/PaintShader.h"
40 #include "platform/instrumentation/PlatformInstrumentation.h" 40 #include "platform/instrumentation/PlatformInstrumentation.h"
41 #include "platform/instrumentation/tracing/TraceEvent.h" 41 #include "platform/instrumentation/tracing/TraceEvent.h"
42 #include "platform/network/mime/MIMETypeRegistry.h" 42 #include "platform/network/mime/MIMETypeRegistry.h"
43 #include "platform/wtf/StdLibExtras.h"
43 #include "public/platform/Platform.h" 44 #include "public/platform/Platform.h"
44 #include "public/platform/WebData.h" 45 #include "public/platform/WebData.h"
45 #include "third_party/skia/include/core/SkImage.h" 46 #include "third_party/skia/include/core/SkImage.h"
46 #include "wtf/StdLibExtras.h"
47 47
48 #include <math.h> 48 #include <math.h>
49 #include <tuple> 49 #include <tuple>
50 50
51 namespace blink { 51 namespace blink {
52 52
53 Image::Image(ImageObserver* observer) 53 Image::Image(ImageObserver* observer)
54 : m_imageObserver(observer), m_imageObserverDisabled(false) {} 54 : m_imageObserver(observer), m_imageObserverDisabled(false) {}
55 55
56 Image::~Image() {} 56 Image::~Image() {}
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 FloatRect subset = dest; 378 FloatRect subset = dest;
379 subset.setX((dest.x() - tile.x()) / scale.width()); 379 subset.setX((dest.x() - tile.x()) / scale.width());
380 subset.setY((dest.y() - tile.y()) / scale.height()); 380 subset.setY((dest.y() - tile.y()) / scale.height());
381 subset.setWidth(dest.width() / scale.width()); 381 subset.setWidth(dest.width() / scale.width());
382 subset.setHeight(dest.height() / scale.height()); 382 subset.setHeight(dest.height() / scale.height());
383 383
384 return subset; 384 return subset;
385 } 385 }
386 386
387 } // namespace blink 387 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | third_party/WebKit/Source/platform/graphics/ImageBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698