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

Side by Side Diff: core/fxge/ge/cfx_renderdevice.cpp

Issue 2530343004: enable skia gradients, fix bugs (Closed)
Patch Set: rebase Created 4 years 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 | « core/fxge/cfx_renderdevice.h ('k') | core/fxge/skia/fx_skia_device.cpp » ('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 2016 PDFium Authors. All rights reserved. 1 // Copyright 2016 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "core/fxge/cfx_renderdevice.h" 7 #include "core/fxge/cfx_renderdevice.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 CFX_RenderDevice::CFX_RenderDevice() 349 CFX_RenderDevice::CFX_RenderDevice()
350 : m_pBitmap(nullptr), 350 : m_pBitmap(nullptr),
351 m_Width(0), 351 m_Width(0),
352 m_Height(0), 352 m_Height(0),
353 m_bpp(0), 353 m_bpp(0),
354 m_RenderCaps(0), 354 m_RenderCaps(0),
355 m_DeviceClass(0) {} 355 m_DeviceClass(0) {}
356 356
357 CFX_RenderDevice::~CFX_RenderDevice() {} 357 CFX_RenderDevice::~CFX_RenderDevice() {}
358 358
359 #ifdef _SKIA_SUPPORT_ 359 #if defined _SKIA_SUPPORT_ || defined _SKIA_SUPPORT_PATHS_
360 void CFX_RenderDevice::Flush() { 360 void CFX_RenderDevice::Flush() {
361 m_pDeviceDriver.reset(); 361 m_pDeviceDriver.reset();
362 } 362 }
363 #endif 363 #endif
364 364
365 void CFX_RenderDevice::SetDeviceDriver( 365 void CFX_RenderDevice::SetDeviceDriver(
366 std::unique_ptr<IFX_RenderDeviceDriver> pDriver) { 366 std::unique_ptr<IFX_RenderDeviceDriver> pDriver) {
367 m_pDeviceDriver = std::move(pDriver); 367 m_pDeviceDriver = std::move(pDriver);
368 InitDeviceInfo(); 368 InitDeviceInfo();
369 } 369 }
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 fill_color, stroke_color, fill_mode, 1072 fill_color, stroke_color, fill_mode,
1073 FXDIB_BLEND_NORMAL)) { 1073 FXDIB_BLEND_NORMAL)) {
1074 return false; 1074 return false;
1075 } 1075 }
1076 } 1076 }
1077 if (pClippingPath) 1077 if (pClippingPath)
1078 pClippingPath->Append(&TransformedPath, pUser2Device); 1078 pClippingPath->Append(&TransformedPath, pUser2Device);
1079 } 1079 }
1080 return true; 1080 return true;
1081 } 1081 }
OLDNEW
« no previous file with comments | « core/fxge/cfx_renderdevice.h ('k') | core/fxge/skia/fx_skia_device.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698