Home | History | Annotate | Download | only in service
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_
      6 #define GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_
      7 
      8 #include "base/basictypes.h"
      9 
     10 namespace gpu {
     11 
     12 class StreamTexture;
     13 
     14 // Interface used by the cmd decoder to create and lookup stream textures.
     15 class StreamTextureManager {
     16  public:
     17   StreamTextureManager() {
     18   }
     19 
     20   virtual ~StreamTextureManager() {
     21   }
     22 
     23   // Returns an identifier for the object, or NULL if not successful.
     24   virtual uint32 CreateStreamTexture(uint32 service_id, uint32 client_id) = 0;
     25 
     26   virtual void DestroyStreamTexture(uint32 service_id) = 0;
     27 
     28   virtual StreamTexture* LookupStreamTexture(uint32 service_id) = 0;
     29 
     30  private:
     31   DISALLOW_COPY_AND_ASSIGN(StreamTextureManager);
     32 };
     33 
     34 }  // namespace gpu
     35 
     36 #endif  // GPU_COMMAND_BUFFER_SERVICE_STREAM_TEXTURE_MANAGER_H_
     37