Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin_compositing_helper.cc

Issue 15822010: Update refernces to Blink's Platform API (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/delegated_renderer_layer.h" 7 #include "cc/layers/delegated_renderer_layer.h"
8 #include "cc/layers/solid_color_layer.h" 8 #include "cc/layers/solid_color_layer.h"
9 #include "cc/layers/texture_layer.h" 9 #include "cc/layers/texture_layer.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
11 #include "content/common/browser_plugin/browser_plugin_messages.h" 11 #include "content/common/browser_plugin/browser_plugin_messages.h"
12 #include "content/common/gpu/client/context_provider_command_buffer.h" 12 #include "content/common/gpu/client/context_provider_command_buffer.h"
13 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 13 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
14 #include "content/renderer/render_thread_impl.h" 14 #include "content/renderer/render_thread_impl.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 15 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
17 #include "third_party/khronos/GLES2/gl2.h" 17 #include "third_party/khronos/GLES2/gl2.h"
18 #include "ui/gfx/size_conversions.h" 18 #include "ui/gfx/size_conversions.h"
19 #include "webkit/renderer/compositor_bindings/web_layer_impl.h" 19 #include "webkit/renderer/compositor_bindings/web_layer_impl.h"
20 20
21 namespace content { 21 namespace content {
22 22
23 BrowserPluginCompositingHelper::BrowserPluginCompositingHelper( 23 BrowserPluginCompositingHelper::BrowserPluginCompositingHelper(
24 WebKit::WebPluginContainer* container, 24 WebKit::WebPluginContainer* container,
25 BrowserPluginManager* manager, 25 BrowserPluginManager* manager,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 } 291 }
292 292
293 void BrowserPluginCompositingHelper::UpdateVisibility(bool visible) { 293 void BrowserPluginCompositingHelper::UpdateVisibility(bool visible) {
294 if (texture_layer_) 294 if (texture_layer_)
295 texture_layer_->SetIsDrawable(visible); 295 texture_layer_->SetIsDrawable(visible);
296 if (delegated_layer_) 296 if (delegated_layer_)
297 delegated_layer_->SetIsDrawable(visible); 297 delegated_layer_->SetIsDrawable(visible);
298 } 298 }
299 299
300 } // namespace content 300 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/browser_plugin/browser_plugin_browsertest.h ('k') | content/renderer/cpp_bound_class_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698