OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/renderer/browser_plugin/browser_plugin_compositing_helper.h" | 5 #include "content/renderer/browser_plugin/browser_plugin_compositing_helper.h" |
6 | 6 |
| 7 #include "cc/layers/solid_color_layer.h" |
| 8 #include "cc/layers/texture_layer.h" |
7 #include "cc/output/context_provider.h" | 9 #include "cc/output/context_provider.h" |
8 #include "cc/solid_color_layer.h" | |
9 #include "cc/texture_layer.h" | |
10 #include "content/common/browser_plugin/browser_plugin_messages.h" | 10 #include "content/common/browser_plugin/browser_plugin_messages.h" |
11 #include "content/common/gpu/client/context_provider_command_buffer.h" | 11 #include "content/common/gpu/client/context_provider_command_buffer.h" |
12 #include "content/renderer/browser_plugin/browser_plugin_manager.h" | 12 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
13 #include "content/renderer/render_thread_impl.h" | 13 #include "content/renderer/render_thread_impl.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
16 #include "third_party/khronos/GLES2/gl2.h" | 16 #include "third_party/khronos/GLES2/gl2.h" |
17 #include "ui/gfx/size_conversions.h" | 17 #include "ui/gfx/size_conversions.h" |
18 #include "webkit/compositor_bindings/web_layer_impl.h" | 18 #include "webkit/compositor_bindings/web_layer_impl.h" |
19 | 19 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 texture_layer_->SetNeedsDisplay(); | 221 texture_layer_->SetNeedsDisplay(); |
222 last_mailbox_valid_ = current_mailbox_valid; | 222 last_mailbox_valid_ = current_mailbox_valid; |
223 } | 223 } |
224 | 224 |
225 void BrowserPluginCompositingHelper::UpdateVisibility(bool visible) { | 225 void BrowserPluginCompositingHelper::UpdateVisibility(bool visible) { |
226 if (texture_layer_) | 226 if (texture_layer_) |
227 texture_layer_->SetIsDrawable(visible); | 227 texture_layer_->SetIsDrawable(visible); |
228 } | 228 } |
229 | 229 |
230 } // namespace content | 230 } // namespace content |
OLD | NEW |