Edit

kc3-lang/angle/src/libANGLE/renderer/SamplerImpl.h

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2018-09-12 11:03:05
    Hash : 097d3c0c
    Message : Make SamplerState a contained class. This will more easily allow us to use a cached completeness comparison value. The cached value only gets updated on certain setters. Bug: angleproject:2763 Change-Id: Ib80db8517560617087ae8360f7af69d6c2392b76 Reviewed-on: https://chromium-review.googlesource.com/1171507 Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Frank Henigman <fjhenigman@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>

  • src/libANGLE/renderer/SamplerImpl.h
  • //
    // Copyright 2014 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    // SamplerImpl.h: Defines the abstract rx::SamplerImpl class.
    
    #ifndef LIBANGLE_RENDERER_SAMPLERIMPL_H_
    #define LIBANGLE_RENDERER_SAMPLERIMPL_H_
    
    #include "common/angleutils.h"
    
    namespace gl
    {
    class Context;
    class SamplerState;
    }  // namespace gl
    
    namespace rx
    {
    
    class SamplerImpl : angle::NonCopyable
    {
      public:
        SamplerImpl(const gl::SamplerState &state) : mState(state) {}
        virtual ~SamplerImpl() {}
    
        virtual void syncState(const gl::Context *context)
        {
            // Default implementation: no-op.
        }
    
      protected:
        const gl::SamplerState &mState;
    };
    }  // namespace rx
    
    #endif  // LIBANGLE_RENDERER_SAMPLERIMPL_H_