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

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

Issue 2755583003: color: Remove flags for true color rendering (Closed)
Patch Set: Created 3 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
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, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple 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 29 matching lines...) Expand all
40 #include "platform/instrumentation/tracing/TraceEvent.h" 40 #include "platform/instrumentation/tracing/TraceEvent.h"
41 #include "wtf/PassRefPtr.h" 41 #include "wtf/PassRefPtr.h"
42 #include "wtf/PtrUtil.h" 42 #include "wtf/PtrUtil.h"
43 #include "wtf/text/WTFString.h" 43 #include "wtf/text/WTFString.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 namespace { 47 namespace {
48 48
49 ColorBehavior defaultColorBehavior() { 49 ColorBehavior defaultColorBehavior() {
50 if (RuntimeEnabledFeatures::trueColorRenderingEnabled()) 50 if (RuntimeEnabledFeatures::colorCorrectRenderingEnabled())
51 return ColorBehavior::tag(); 51 return ColorBehavior::tag();
52 return ColorBehavior::transformToGlobalTarget(); 52 return ColorBehavior::transformToGlobalTarget();
53 } 53 }
54 54
55 } // namespace 55 } // namespace
56 56
57 PassRefPtr<BitmapImage> BitmapImage::createWithOrientationForTesting( 57 PassRefPtr<BitmapImage> BitmapImage::createWithOrientationForTesting(
58 const SkBitmap& bitmap, 58 const SkBitmap& bitmap,
59 ImageOrientation orientation) { 59 ImageOrientation orientation) {
60 if (bitmap.isNull()) { 60 if (bitmap.isNull()) {
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 getImageObserver()->animationAdvanced(this); 635 getImageObserver()->animationAdvanced(this);
636 636
637 return true; 637 return true;
638 } 638 }
639 639
640 void BitmapImage::notifyObserversOfAnimationAdvance(TimerBase*) { 640 void BitmapImage::notifyObserversOfAnimationAdvance(TimerBase*) {
641 getImageObserver()->animationAdvanced(this); 641 getImageObserver()->animationAdvanced(this);
642 } 642 }
643 643
644 } // namespace blink 644 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 ('k') | third_party/WebKit/Source/web/WebRuntimeFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698