OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 CC_OUTPUT_GL_RENDERER_H_ | 5 #ifndef CC_OUTPUT_GL_RENDERER_H_ |
6 #define CC_OUTPUT_GL_RENDERER_H_ | 6 #define CC_OUTPUT_GL_RENDERER_H_ |
7 | 7 |
8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/base/scoped_ptr_deque.h" | 10 #include "cc/base/scoped_ptr_deque.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 TextureMailboxDeleter* texture_mailbox_deleter, | 55 TextureMailboxDeleter* texture_mailbox_deleter, |
56 int highp_threshold_min); | 56 int highp_threshold_min); |
57 | 57 |
58 ~GLRenderer() override; | 58 ~GLRenderer() override; |
59 | 59 |
60 const RendererCapabilitiesImpl& Capabilities() const override; | 60 const RendererCapabilitiesImpl& Capabilities() const override; |
61 | 61 |
62 // Waits for rendering to finish. | 62 // Waits for rendering to finish. |
63 void Finish() override; | 63 void Finish() override; |
64 | 64 |
65 void DoNoOp() override; | |
66 void SwapBuffers(const CompositorFrameMetadata& metadata) override; | 65 void SwapBuffers(const CompositorFrameMetadata& metadata) override; |
67 | 66 |
68 virtual bool IsContextLost(); | 67 virtual bool IsContextLost(); |
69 | 68 |
70 protected: | 69 protected: |
71 GLRenderer(RendererClient* client, | 70 GLRenderer(RendererClient* client, |
72 const RendererSettings* settings, | 71 const RendererSettings* settings, |
73 OutputSurface* output_surface, | 72 OutputSurface* output_surface, |
74 ResourceProvider* resource_provider, | 73 ResourceProvider* resource_provider, |
75 TextureMailboxDeleter* texture_mailbox_deleter, | 74 TextureMailboxDeleter* texture_mailbox_deleter, |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 513 |
515 SkBitmap on_demand_tile_raster_bitmap_; | 514 SkBitmap on_demand_tile_raster_bitmap_; |
516 ResourceId on_demand_tile_raster_resource_id_; | 515 ResourceId on_demand_tile_raster_resource_id_; |
517 BoundGeometry bound_geometry_; | 516 BoundGeometry bound_geometry_; |
518 DISALLOW_COPY_AND_ASSIGN(GLRenderer); | 517 DISALLOW_COPY_AND_ASSIGN(GLRenderer); |
519 }; | 518 }; |
520 | 519 |
521 } // namespace cc | 520 } // namespace cc |
522 | 521 |
523 #endif // CC_OUTPUT_GL_RENDERER_H_ | 522 #endif // CC_OUTPUT_GL_RENDERER_H_ |
OLD | NEW |