| 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 COMPONENTS_SURFACES_DISPLAY_IMPL_H_ |   5 #ifndef COMPONENTS_SURFACES_DISPLAY_IMPL_H_ | 
|   6 #define COMPONENTS_SURFACES_DISPLAY_IMPL_H_ |   6 #define COMPONENTS_SURFACES_DISPLAY_IMPL_H_ | 
|   7  |   7  | 
|   8 #include "base/memory/scoped_ptr.h" |   8 #include "base/memory/scoped_ptr.h" | 
|   9 #include "cc/surfaces/display_client.h" |   9 #include "cc/surfaces/display_client.h" | 
|  10 #include "cc/surfaces/surface_factory.h" |  10 #include "cc/surfaces/surface_factory.h" | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
|  36   ~DisplayImpl() override; |  36   ~DisplayImpl() override; | 
|  37  |  37  | 
|  38  private: |  38  private: | 
|  39   void OnContextCreated(mojo::CommandBufferPtr gles2_client); |  39   void OnContextCreated(mojo::CommandBufferPtr gles2_client); | 
|  40  |  40  | 
|  41   // mojo::Display implementation: |  41   // mojo::Display implementation: | 
|  42   void SubmitFrame(mojo::FramePtr frame, |  42   void SubmitFrame(mojo::FramePtr frame, | 
|  43                    const SubmitFrameCallback& callback) override; |  43                    const SubmitFrameCallback& callback) override; | 
|  44  |  44  | 
|  45   // DisplayClient implementation. |  45   // DisplayClient implementation. | 
|  46   void DisplayDamaged() override; |  | 
|  47   void DidSwapBuffers() override; |  | 
|  48   void DidSwapBuffersComplete() override; |  | 
|  49   void CommitVSyncParameters(base::TimeTicks timebase, |  46   void CommitVSyncParameters(base::TimeTicks timebase, | 
|  50                              base::TimeDelta interval) override; |  47                              base::TimeDelta interval) override; | 
|  51   void OutputSurfaceLost() override; |  48   void OutputSurfaceLost() override; | 
|  52   void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; |  49   void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; | 
|  53  |  50  | 
|  54   // ViewportParameterListener |  51   // ViewportParameterListener | 
|  55   void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; |  52   void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; | 
|  56  |  53  | 
|  57   // SurfaceFactoryClient implementation. |  54   // SurfaceFactoryClient implementation. | 
|  58   void ReturnResources(const cc::ReturnedResourceArray& resources) override; |  55   void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
|  75  |  72  | 
|  76   mojo::Binding<mojo::ViewportParameterListener> viewport_param_binding_; |  73   mojo::Binding<mojo::ViewportParameterListener> viewport_param_binding_; | 
|  77   mojo::StrongBinding<mojo::Display> display_binding_; |  74   mojo::StrongBinding<mojo::Display> display_binding_; | 
|  78  |  75  | 
|  79   DISALLOW_COPY_AND_ASSIGN(DisplayImpl); |  76   DISALLOW_COPY_AND_ASSIGN(DisplayImpl); | 
|  80 }; |  77 }; | 
|  81  |  78  | 
|  82 }  // namespace surfaces |  79 }  // namespace surfaces | 
|  83  |  80  | 
|  84 #endif  // COMPONENTS_SURFACES_DISPLAY_IMPL_H_ |  81 #endif  // COMPONENTS_SURFACES_DISPLAY_IMPL_H_ | 
| OLD | NEW |