 Chromium Code Reviews
 Chromium Code Reviews Issue 2089753003:
  cc: Use the correct internal format for glCopyTexImage2D calls.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 2089753003:
  cc: Use the correct internal format for glCopyTexImage2D calls.  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium 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 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ | 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ | 
| 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ | 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ | 
| 7 | 7 | 
| 8 #include <stdint.h> | 8 #include <stdint.h> | 
| 9 | 9 | 
| 10 #include <memory> | 10 #include <memory> | 
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 gpu::Capabilities ContextCapabilities() override; | 36 gpu::Capabilities ContextCapabilities() override; | 
| 37 gpu::gles2::GLES2Interface* ContextGL() override; | 37 gpu::gles2::GLES2Interface* ContextGL() override; | 
| 38 gpu::ContextSupport* ContextSupport() override; | 38 gpu::ContextSupport* ContextSupport() override; | 
| 39 class GrContext* GrContext() override; | 39 class GrContext* GrContext() override; | 
| 40 void InvalidateGrContext(uint32_t state) override; | 40 void InvalidateGrContext(uint32_t state) override; | 
| 41 base::Lock* GetLock() override; | 41 base::Lock* GetLock() override; | 
| 42 void DeleteCachedResources() override; | 42 void DeleteCachedResources() override; | 
| 43 void SetLostContextCallback( | 43 void SetLostContextCallback( | 
| 44 const LostContextCallback& lost_context_callback) override; | 44 const LostContextCallback& lost_context_callback) override; | 
| 45 | 45 | 
| 46 uint32_t GetCopyTextureInternalFormat(); | |
| 
Wez
2016/06/22 21:02:21
nit: Please add a comment e.g. "Returns the GL tex
 
danakj
2016/06/22 21:06:50
Done, here and on the other context providers too.
 
Wez
2016/06/22 21:08:14
Acknowledged.
 | |
| 47 | |
| 46 protected: | 48 protected: | 
| 47 BlimpContextProvider( | 49 BlimpContextProvider( | 
| 48 gfx::AcceleratedWidget widget, | 50 gfx::AcceleratedWidget widget, | 
| 49 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | 51 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager); | 
| 50 ~BlimpContextProvider() override; | 52 ~BlimpContextProvider() override; | 
| 51 | 53 | 
| 52 private: | 54 private: | 
| 53 void OnLostContext(); | 55 void OnLostContext(); | 
| 54 | 56 | 
| 55 base::ThreadChecker main_thread_checker_; | 57 base::ThreadChecker main_thread_checker_; | 
| 56 base::ThreadChecker context_thread_checker_; | 58 base::ThreadChecker context_thread_checker_; | 
| 57 | 59 | 
| 58 std::unique_ptr<gpu::GLInProcessContext> context_; | 60 std::unique_ptr<gpu::GLInProcessContext> context_; | 
| 59 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 61 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; | 
| 60 | 62 | 
| 61 LostContextCallback lost_context_callback_; | 63 LostContextCallback lost_context_callback_; | 
| 62 | 64 | 
| 63 DISALLOW_COPY_AND_ASSIGN(BlimpContextProvider); | 65 DISALLOW_COPY_AND_ASSIGN(BlimpContextProvider); | 
| 64 }; | 66 }; | 
| 65 | 67 | 
| 66 } // namespace client | 68 } // namespace client | 
| 67 } // namespace blimp | 69 } // namespace blimp | 
| 68 | 70 | 
| 69 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ | 71 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_CONTEXT_PROVIDER_H_ | 
| OLD | NEW |