gfx/skia/trunk/src/gpu/effects/GrSingleTextureEffect.cpp

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 /*
     2  * Copyright 2012 Google Inc.
     3  *
     4  * Use of this source code is governed by a BSD-style license that can be
     5  * found in the LICENSE file.
     6  */
     8 #include "effects/GrSingleTextureEffect.h"
    10 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
    11                                              const SkMatrix& m,
    12                                              GrCoordSet coordSet)
    13     : fCoordTransform(coordSet, m, texture)
    14     , fTextureAccess(texture) {
    15     this->addCoordTransform(&fCoordTransform);
    16     this->addTextureAccess(&fTextureAccess);
    17 }
    19 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
    20                                              const SkMatrix& m,
    21                                              GrTextureParams::FilterMode filterMode,
    22                                              GrCoordSet coordSet)
    23     : fCoordTransform(coordSet, m, texture)
    24     , fTextureAccess(texture, filterMode) {
    25     this->addCoordTransform(&fCoordTransform);
    26     this->addTextureAccess(&fTextureAccess);
    27 }
    29 GrSingleTextureEffect::GrSingleTextureEffect(GrTexture* texture,
    30                                              const SkMatrix& m,
    31                                              const GrTextureParams& params,
    32                                              GrCoordSet coordSet)
    33     : fCoordTransform(coordSet, m, texture)
    34     , fTextureAccess(texture, params) {
    35     this->addCoordTransform(&fCoordTransform);
    36     this->addTextureAccess(&fTextureAccess);
    37 }
    39 GrSingleTextureEffect::~GrSingleTextureEffect() {
    40 }

mercurial