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

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

Issue 1180663002: Make deferred image decoding default to on. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: deferredon: . Created 5 years, 6 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 | « no previous file | Source/web/WebSettingsImpl.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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 22 matching lines...) Expand all
33 33
34 namespace blink { 34 namespace blink {
35 35
36 namespace { 36 namespace {
37 37
38 // URI label for SkDiscardablePixelRef. 38 // URI label for SkDiscardablePixelRef.
39 const char labelDiscardable[] = "discardable"; 39 const char labelDiscardable[] = "discardable";
40 40
41 } // namespace 41 } // namespace
42 42
43 bool DeferredImageDecoder::s_enabled = false; 43 bool DeferredImageDecoder::s_enabled = true;
44 44
45 DeferredImageDecoder::DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecode r) 45 DeferredImageDecoder::DeferredImageDecoder(PassOwnPtr<ImageDecoder> actualDecode r)
46 : m_allDataReceived(false) 46 : m_allDataReceived(false)
47 , m_lastDataSize(0) 47 , m_lastDataSize(0)
48 , m_actualDecoder(actualDecoder) 48 , m_actualDecoder(actualDecoder)
49 , m_repetitionCount(cAnimationNone) 49 , m_repetitionCount(cAnimationNone)
50 , m_hasColorProfile(false) 50 , m_hasColorProfile(false)
51 { 51 {
52 } 52 }
53 53
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 return bitmap; 290 return bitmap;
291 } 291 }
292 292
293 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const 293 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const
294 { 294 {
295 // TODO: Implement. 295 // TODO: Implement.
296 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false; 296 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false;
297 } 297 }
298 298
299 } // namespace blink 299 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebSettingsImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698