| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "android_webview/browser/parent_output_surface.h" | 5 #include "android_webview/browser/parent_output_surface.h" |
| 6 | 6 |
| 7 #include "cc/output/output_surface_client.h" | 7 #include "cc/output/output_surface_client.h" |
| 8 #include "gpu/command_buffer/client/gles2_interface.h" | 8 #include "gpu/command_buffer/client/gles2_interface.h" |
| 9 | 9 |
| 10 namespace android_webview { | 10 namespace android_webview { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 client_->DidSwapBuffers(); | 23 client_->DidSwapBuffers(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void ParentOutputSurface::SetDrawConstraints(const gfx::Size& surface_size, | 26 void ParentOutputSurface::SetDrawConstraints(const gfx::Size& surface_size, |
| 27 const gfx::Rect& clip) { | 27 const gfx::Rect& clip) { |
| 28 DCHECK(client_); | 28 DCHECK(client_); |
| 29 surface_size_ = surface_size; | 29 surface_size_ = surface_size; |
| 30 const gfx::Transform identity; | 30 const gfx::Transform identity; |
| 31 const gfx::Rect empty; | 31 const gfx::Rect empty; |
| 32 const bool resourceless_software_draw = false; | 32 const bool resourceless_software_draw = false; |
| 33 SetExternalDrawConstraints(identity, empty, clip, resourceless_software_draw); | 33 SetExternalDrawConstraints( |
| 34 identity, empty, clip, clip, resourceless_software_draw); |
| 34 } | 35 } |
| 35 | 36 |
| 36 } // namespace android_webview | 37 } // namespace android_webview |
| OLD | NEW |